@@ -19,9 +19,7 @@ $ pip install -r requirements.txt
1919# Usage
2020``` bash
2121$ ./print.py --help
22- usage: print.py [-h] [-l {debug,info,warn,error}]
23- [-b {mean-threshold,floyd-steinberg,halftone,none}] [-s]
24- [-d DEVICE] [-t]
22+ usage: print.py [-h] [-l {debug,info,warn,error}] [-b {mean-threshold,floyd-steinberg,atkinson,halftone,none}] [-s] [-d DEVICE] [-e ENERGY]
2523 filename
2624
2725prints an image on your cat thermal printer
@@ -33,19 +31,15 @@ options:
3331 -h, --help show this help message and exit
3432 -l {debug,info,warn,error}, --log-level {debug,info,warn,error}
3533 -b {mean-threshold,floyd-steinberg,atkinson,halftone,none}, --img-binarization-algo {mean-threshold,floyd-steinberg,atkinson,halftone,none}
36- Which image binarization algorithm to use. If ' none'
37- is used, no binarization will be used. In this case
38- the image has to have a width of 384 px.
39- -s, --show-preview If set, displays the final image and asks the user for
40- confirmation before printing.
34+ Which image binarization algorithm to use. If ' none' is used, no binarization will be used. In this case the image has to
35+ have a width of 384 px.
36+ -s, --show-preview If set, displays the final image and asks the user for confirmation before printing.
4137 -d DEVICE, --device DEVICE
42- The printer' s Bluetooth Low Energy (BLE) address (MAC
43- address on Linux; UUID on macOS) or advertisement name
44- (e.g.: "GT01", "GB02", "GB03"). If omitted, the the
45- script will try to auto discover the printer based on
46- its advertised BLE services.
47- -t, --darker Print the image in text mode. This leads to more
48- contrast, but slower speed.
38+ The printer' s Bluetooth Low Energy (BLE) address (MAC address on Linux; UUID on macOS) or advertisement name (e.g.:
39+ "GT01", "GB02", "GB03"). If omitted, the the script will try to auto discover the printer based on its advertised BLE
40+ services.
41+ -e ENERGY, --energy ENERGY
42+ Thermal energy. Between 0x0000 (light) and 0xffff (darker, default).
4943```
5044
5145# Example
0 commit comments