add GPIO input states dict

This commit is contained in:
ohsqueezy 2023-02-20 22:24:44 -05:00
parent fb1b34cecc
commit c3f42cba40
1 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,12 @@ class Playzing(pgfw.Game):
"""
pgfw.Game.__init__(self)
# Member dict for tracking pin state changes. Start at 1 because high means unpressed.
self.pin_states = {
self.PIN_BUTTON_LEFT: 1,
self.PIN_BUTTON_RIGHT: 1
}
# Assign types to configuration values
self.configuration.type_declarations.add_chart({
"display":