You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: smibhid/README.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,12 +90,17 @@ Use existing space state buttons, lights, slack API wrapper and watchers as an e
90
90
- Display drivers can be added by creating a new display driver module
91
91
- Ensure the driver registers itself with the driver registry, use LCD1602 as an example
92
92
- Import the new driver module in display.py
93
-
- Update the config.py file to cinlude the option for your new driver
93
+
- Update the config.py file to include the option for your new driver
94
94
- UIState machine
95
95
- A state machine exists and can be extended by various modules such as space_state to manage the state of the buttons and display output
96
96
- The current state instance is held in hid.ui_state_instance
97
-
- Enter a new UI state by caling the transition_to() method on a UIstate instance and pass any arguments needed by that state
98
-
- You will need to pass any core objects needed by the base UIState class and apply using super() as normal. These are currently HID (for managing the current state instance) and SpaceState so that the open and close buttons are avaialble in all UIs with default space open/closed behaviour.
97
+
- Enter a new UI state by calling the transition_to() method on a UIstate instance and pass any arguments needed by that state
98
+
- You will need to pass any core objects needed by the base UIState class and apply using super() as normal. These are currently HID (for managing the current state instance) and SpaceState so that the open and close buttons are available in all UIs with default space open/closed behaviour.
99
+
100
+
### UI State diagram
101
+
The space state UI state machine is described in this diagram:
102
+
103
+

99
104
100
105
## Version
101
106
Ensure that the `HID` class version attribute is updated to match the version in `pyproject.toml`
0 commit comments