diff options
author | Tom Willemse | 2023-07-07 23:12:47 -0700 |
---|---|---|
committer | Tom Willemse | 2023-07-07 23:16:12 -0700 |
commit | 48ce1ba15723ddb3807ee681729d330d3972a155 (patch) | |
tree | d2f3b00cd79e25f7c061eedfefe159eac3015246 | |
parent | 6f99ff98bc42d5e432614ed1201c997a74148cd1 (diff) | |
download | inkplate-display-48ce1ba15723ddb3807ee681729d330d3972a155.tar.gz inkplate-display-48ce1ba15723ddb3807ee681729d330d3972a155.zip |
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.
-rw-r--r-- | README.org | 4 | ||||
-rwxr-xr-x | inkplate-display | 4 |
2 files changed, 7 insertions, 1 deletions
@@ -14,3 +14,7 @@ Put the =inkplate-display= script anywhere in your =$PATH=. * 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=. + +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. diff --git a/inkplate-display b/inkplate-display index 0186198..2c7b3ab 100755 --- a/inkplate-display +++ b/inkplate-display @@ -110,7 +110,9 @@ (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:close my-dev)) |