Skip to content

Commit

Permalink
small updates to readme and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
philbertw4 committed Aug 12, 2020
1 parent 3626b53 commit 6f60b1c
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions home.admin/BlitzPaperUI/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,27 @@ This implements a simple user interface for the Raspiblitz using a waveshare e-p
Right now the e-paper display we use is the [2.7-inch Waveshare](https://www.waveshare.com/wiki/2.7inch_e-Paper_HAT)
which conveniently has 4 buttons on one side.

### Design
The initial goal of the functionality in this set of scripts/programs is to find the balance between
simplicity and generality. As such, we break the functionality of the e-paper design into components
and develop simple utility programs to interact with the components. Functionality, at least initially,
is quite limited to:
1. displaying something on the e-paper display
2. doing something when one of the 4 buttons is pressed

By exposing both of the above via a simple command-line interface, the hope is that apps on higher layers,
or even Raspiblitz owners/users directly, can very easily interact with or otherwise customize the setup.

### Usage/Examples
Will attempt to keep these examples updated to reflect the current state of the library.
Right now the scripts available are extremely simple/minimal and probably full of a lot of bugs, uncaught
corner cases, etc. Nevertheless, we will attempt to keep these examples updated to reflect the current
state of the library.

* Printing a message to the screen: `sudo python3 epapersay.py "Reckless Raspiblitz!!"`
* Reacting to button press: `sudo python3 paperblitz.py "echo 1" "echo 2" "echo 3" "sudo python3 epapersay.py \"hello\""` will run the `echo i` commands for buttons 1-3, and for button 4 will
print to the display itself using `papersay.py`
* Reacting to button press: `sudo python3 paperblitz.py "echo 1" "echo 2" "echo 3" "sudo python3 epapersay.py \"hello\""`
will run the `echo i` commands for buttons 1-3, and for button 4 will
print to the display itself using `papersay.py`. Naturally any of these arguments could be replaced by
arbitrary commands.

### Next Development Goal
* Refactor button code
Expand Down

0 comments on commit 6f60b1c

Please sign in to comment.