RASCSI/python/oled
dependabot[bot] e276166632
Bump pillow from 9.3.0 to 10.0.1 in /python/oled (#1235)
* Bump pillow from 9.3.0 to 10.0.1 in /python/oled

Bumps [pillow](https://github.com/python-pillow/Pillow) from 9.3.0 to 10.0.1.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/9.3.0...10.0.1)

---
updated-dependencies:
- dependency-name: pillow
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-22 19:00:25 +09:00
..
resources PiSCSI name in OLED splash screen (#1169) 2023-05-16 23:09:12 -05:00
service-infra Launch python client services only after network-online target (#1197) 2023-07-31 12:12:53 -07:00
src Rebrand project to PiSCSI (#1016) 2022-12-05 09:58:23 -08:00
tests
README.md Rebrand project to PiSCSI (#1016) 2022-12-05 09:58:23 -08:00
requirements.txt Bump pillow from 9.3.0 to 10.0.1 in /python/oled (#1235) 2023-10-22 19:00:25 +09:00
start.sh Rebrand project to PiSCSI (#1016) 2022-12-05 09:58:23 -08:00

PiSCSI 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/piscsi_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 piscsi_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)