mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-29 16:49:55 +00:00
52e4a92aec
* 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 | ||
__init__.py | ||
README.md | ||
requirements.txt | ||
start.sh |
PiSCSI Control Board UI
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
$ python3 src/main.py
Parameters
The script parameters can be shown with
python src/main.py --help
or
start.sh --help
Example:
$ python3 src/main.py --rotation=0 --transitions=0
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=0 --transitions=0
I2C baudrate and transitions
The available bandwidth for the display through I2C is limited. The I2C baudrate is automatically adjusted in easy_install.sh and start.sh to maximize the possible baudrate, however, depending on the Raspberry Pi model in use, we found that for some models enabling the transitions does not work very well. As a result, we have implemented a model detection for the raspberry pi model and enable transitions only for the following pi models:
- Raspberry Pi 4 models
- Raspberry Pi 3 models
- Raspberry Pi Zero 2 models
The model detection can be overriden by adding a --transitions parameter to start.sh.
Credits
DejaVuSansMono-Bold.ttf
- Source: https://dejavu-fonts.github.io
- Distributed under DejaVu Fonts Lience (see DejaVu Fonts License.txt 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)