add GPIO input states dict
This commit is contained in:
parent
fb1b34cecc
commit
c3f42cba40
|
@ -24,6 +24,12 @@ class Playzing(pgfw.Game):
|
||||||
"""
|
"""
|
||||||
pgfw.Game.__init__(self)
|
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
|
# Assign types to configuration values
|
||||||
self.configuration.type_declarations.add_chart({
|
self.configuration.type_declarations.add_chart({
|
||||||
"display":
|
"display":
|
||||||
|
|
Loading…
Reference in New Issue