mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-22 16:33:17 +00:00
510765b0c7
* Bump black from 22.8.0 to 24.3.0 in /python/web Bumps [black](https://github.com/psf/black) from 22.8.0 to 24.3.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/compare/22.8.0...24.3.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> * Github CI: Backend web test runner use python 3.9.19 * Reformat python sources with black * Docker: Bump to python 3.9-slim image for pytest * Bump pytest version to 8.1.1 * Bump more library versions, and freeze them --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Daniel Markstedt <daniel@mindani.net> |
||
---|---|---|
.. | ||
resources | ||
service-infra | ||
src | ||
tests | ||
README.md | ||
requirements.txt | ||
start.sh |
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
- Type Writer TrueType font by Mandy Smith
- Source: https://www.dafont.com/type-writer.font
- Distributed under BSD 3-Clause by permission from author (see LICENSE for full text)
splash_start_*.bmp, splash_stop_*.bmp
- Drawn by Daniel Markstedt
- Distributed under BSD 3-Clause by permission from author (see LICENSE for full text)