mirror of
https://github.com/akuker/RASCSI.git
synced 2024-05-28 09:41:33 +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>
38 lines
1.2 KiB
Python
38 lines
1.2 KiB
Python
"""
|
|
Module for central PiSCSI control board configuration parameters
|
|
"""
|
|
|
|
from ctrlboard_hw.ctrlboard_hw_constants import CtrlBoardHardwareConstants
|
|
|
|
|
|
# pylint: disable=too-few-public-methods
|
|
class CtrlboardConfig:
|
|
"""Class for central PiSCSI control board configuration parameters"""
|
|
|
|
ROTATION = 0
|
|
WIDTH = 128
|
|
HEIGHT = 64
|
|
LINES = 8
|
|
TOKEN = ""
|
|
BORDER = 5
|
|
TRANSITIONS = 1
|
|
DISPLAY_I2C_ADDRESS = CtrlBoardHardwareConstants.DISPLAY_I2C_ADDRESS
|
|
PCA9554_I2C_ADDRESS = CtrlBoardHardwareConstants.PCA9554_I2C_ADDRESS
|
|
MENU_REFRESH_INTERVAL = 6
|
|
LOG_LEVEL = 30 # Warning
|
|
|
|
PISCSI_HOST = "localhost"
|
|
PISCSI_PORT = "6868"
|
|
|
|
def __str__(self):
|
|
result = "rotation: " + str(self.ROTATION) + "\n"
|
|
result += "width: " + str(self.WIDTH) + "\n"
|
|
result += "height: " + str(self.HEIGHT) + "\n"
|
|
result += "lines: " + str(self.LINES) + "\n"
|
|
result += "border: " + str(self.BORDER) + "\n"
|
|
result += "piscsi host: " + str(self.PISCSI_HOST) + "\n"
|
|
result += "piscsi port: " + str(self.PISCSI_PORT) + "\n"
|
|
result += "transitions: " + str(self.TRANSITIONS) + "\n"
|
|
|
|
return result
|