Add ‘--reset’ command-line option
Passing this option will cause a full update command to be sent to the Inkplate instead of a partial update command. A full update cleans up any residual display from previous partial updates, but causes more wear on the eink display. It causes a big flash of all black to happen before sending the updated display. I shouldn't be used all the time.
This commit is contained in:
parent
6f99ff98bc
commit
48ce1ba157
2 changed files with 7 additions and 1 deletions
|
@ -14,3 +14,7 @@ Put the =inkplate-display= script anywhere in your =$PATH=.
|
||||||
* Usage
|
* Usage
|
||||||
|
|
||||||
Run the =inkplate-display= script without any arguments. This script assumes that your Inkplate is connected, running in peripheral mode, and that the file descriptor is located at =/dev/ttyUSB0=.
|
Run the =inkplate-display= script without any arguments. This script assumes that your Inkplate is connected, running in peripheral mode, and that the file descriptor is located at =/dev/ttyUSB0=.
|
||||||
|
|
||||||
|
The following command-line arguments are available:
|
||||||
|
|
||||||
|
- =--reset= :: Causes a full screen update to be sent to the Inkplate instead of a partial one. Clears any artifacts from previous partial updates, but is harder on the display so shouldn't be used all the time.
|
||||||
|
|
|
@ -110,7 +110,9 @@
|
||||||
(inkplate:print my-dev (inkplate:convert-string-to-hex "email conversation"))
|
(inkplate:print my-dev (inkplate:convert-string-to-hex "email conversation"))
|
||||||
|
|
||||||
|
|
||||||
(inkplate:partial-update my-dev 15 800 600)
|
(if (member "--reset" (command-line))
|
||||||
|
(inkplate:update my-dev)
|
||||||
|
(inkplate:partial-update my-dev 15 800 600))
|
||||||
(inkplate:send my-dev)
|
(inkplate:send my-dev)
|
||||||
|
|
||||||
(inkplate:close my-dev))
|
(inkplate:close my-dev))
|
||||||
|
|
Loading…
Reference in a new issue