RASCSI/python/oled
Daniel Markstedt 4afb11d3dd
Shutdown splash for the OLED script; restore non-Latin transliteration; other refactoring (#991)
- Bring back the shutdown splash, with the tweak that is blanks out after 700ms
- Restore the non-Latin transliteration originally from https://github.com/akuker/RASCSI/pull/449 which was lost when the `common` package was introduced
- Bump to the latest libraries, while removing implicit dependencies from requirements.txt
- Shorter duration of the startup splash
- Reintroduce shell shutdown/reboot methods for use with the Web UI. This addresses https://github.com/akuker/RASCSI/issues/538 (the ctrlboard client will continue to use the built-in rascsi system calls which are slightly faster)
- Remove overt references to RPi. This addresses https://github.com/akuker/RASCSI/issues/990
- Other refactorings
2022-11-17 16:21:18 -08:00
..
resources Shutdown splash for the OLED script; restore non-Latin transliteration; other refactoring (#991) 2022-11-17 16:21:18 -08:00
service-infra clean squashed restructuring branch. #455 2022-01-09 20:22:19 +01:00
src Shutdown splash for the OLED script; restore non-Latin transliteration; other refactoring (#991) 2022-11-17 16:21:18 -08:00
tests clean squashed restructuring branch. #455 2022-01-09 20:22:19 +01:00
README.md Updating the README to reflect the new file system layout (#658) 2022-02-11 16:29:48 -08:00
requirements.txt Shutdown splash for the OLED script; restore non-Latin transliteration; other refactoring (#991) 2022-11-17 16:21:18 -08:00
start.sh restructuring towards python client library #455 (#613) 2022-01-21 15:08:29 -08:00

RaSCSI OLED Screen

Run as standalone script for development / troubleshooting

# Make a virtual env named venv
$ python3 -m venv venv
# Use that virtual env in this shell
$ source venv/bin/activate
# Install requirements
$ pip3 install -r requirements.txt
$ PYTHONPATH=$PWD/src:$(dirname $PWD)/common/src python3 src/rascsi_oled_monitor.py

Parameters

The script takes two positional parameters:

  • '0' or '180' which decides the screen rotation
  • '32' or '64' which decides the vertical screen resolution in pixels

Ex.

$ python3 rascsi_oled_monitor.py --rotation 180 --height 64

Note: Both parameters must be passed for the script to read them. Ordering is also important.

Run the start.sh script standalone

The start.sh script can also be run standalone, and will handle the venv creation/updating for you. It takes the same command line parameters in the following format:

$ ./start.sh --rotation=180 --height=64

Credits

type_writer.ttf

splash_start_*.bmp, splash_stop_*.bmp

  • Drawn by Daniel Markstedt
  • Distributed under BSD 3-Clause by permission from author (see LICENSE for full text)