mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-25 16:29:48 +00:00
* Rebrand project to PiSCSI - rascsi ->piscsi - rasctl -> scsictl - rasdump -> scsidump - ras* -> piscsi* (rasutil -> piscsi_util, etc.) * Refined the formatting and wording of the app startup banner * Kept some references to rascsi and rasctl where backwards compatibility is concerned * Point to the new github repo URL Co-authored-by: nucleogenic <nr@nucleogenic.com> Co-authored-by: Uwe Seimet <Uwe.Seimet@seimet.de>
26 lines
643 B
Python
26 lines
643 B
Python
"""Module containing the PiSCSI Control Board hardware constants"""
|
|
|
|
|
|
# pylint: disable=too-few-public-methods
|
|
class CtrlBoardHardwareConstants:
|
|
"""Class containing the PiSCSI Control Board hardware constants"""
|
|
|
|
DISPLAY_I2C_ADDRESS = 0x3C
|
|
PCA9554_I2C_ADDRESS = 0x3F
|
|
PCA9554_PIN_ENC_A = 0
|
|
PCA9554_PIN_ENC_B = 1
|
|
PCA9554_PIN_BUTTON_1 = 2
|
|
PCA9554_PIN_BUTTON_2 = 3
|
|
PCA9554_PIN_BUTTON_ROTARY = 5
|
|
PCA9554_PIN_LED_1 = 6
|
|
PCA9554_PIN_LED_2 = 7
|
|
|
|
PI_PIN_INTERRUPT = 9 # BCM
|
|
|
|
BUTTON_1 = "Bt1"
|
|
BUTTON_2 = "Bt2"
|
|
ROTARY_A = "RotA"
|
|
ROTARY_B = "RotB"
|
|
ROTARY_BUTTON = "RotBtn"
|
|
ROTARY = "Rot"
|