mechawrench / wificom-lib

WiFiCom for electronic toy interfacing
https://wificom.dev
MIT License
10 stars 2 forks source link

Figure out buttons on screenless units #96

Closed dmcomm closed 1 year ago

dmcomm commented 1 year ago

Currently, physical button C takes the B role but doesn't actually do anything. I was thinking of using it for Legendz RTB but probably won't. The "Hold C to reboot" ability would be useful. But want to avoid any unintended effects in the other cases where C usage wouldn't make sense on screenless.

dmcomm commented 1 year ago

Could have an optional parameter on all of the is_X_pressed functions which makes it check the single button on screenless units. Then it can sub for any button but only where specifically requested.