From 562f1f0d6af44f87355d4616ff53c0d6c02f0f3b Mon Sep 17 00:00:00 2001 From: Daniel Markstedt Date: Tue, 2 Nov 2021 18:24:07 -0700 Subject: [PATCH] Create a generic README markdown file, remove the font specific one (#415) --- src/oled_monitor/README.md | 39 +++++++++++++++++++++++++++++++++++ src/oled_monitor/fonts.README | 4 ---- 2 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 src/oled_monitor/README.md delete mode 100644 src/oled_monitor/fonts.README diff --git a/src/oled_monitor/README.md b/src/oled_monitor/README.md new file mode 100644 index 00000000..e8f467da --- /dev/null +++ b/src/oled_monitor/README.md @@ -0,0 +1,39 @@ +# RaSCSI OLED Screen + +## Run as standalone script for development / troubleshooting + +```bash +# 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 rascsi_oled_monitor.py +``` + +### Parameters + +The script takes one positional parameter: '0' or '180' which decides the screen rotation + +## Static analysis with pylint + +It is recommended to run pylint against new code to protect against bugs +and keep the code readable and maintainable. +The local pylint configuration lives in .pylintrc (symlink to ../.pylintrc) + +``` +$ sudo apt install pylint3 +$ pylint3 python_source_file.py +``` + +## 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 + Splash screen bitmap images + Drawn by Daniel Markstedt + Distributed under BSD 3-Clause license diff --git a/src/oled_monitor/fonts.README b/src/oled_monitor/fonts.README deleted file mode 100644 index 8028f4bb..00000000 --- a/src/oled_monitor/fonts.README +++ /dev/null @@ -1,4 +0,0 @@ -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)