PyGamer CircuitPython buttons
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- chip64
- Posts: 15
- Joined: Sun Feb 10, 2013 9:39 pm
PyGamer CircuitPython buttons
I am trying to read the button status on a PyGamer using CircuitPython but I am having difficulty tracking down exactly what to import and then how to access the button status. I know the buttons are not directly tied to pins, so reading the pin values is out. Does anyone have some sample code that demonstrates this?
- dastels
- Posts: 15656
- Joined: Tue Oct 20, 2015 3:22 pm
Re: PyGamer CircuitPython buttons
It's covered in the PyGamer tutorial guide. Specifically: https://learn.adafruit.com/adafruit-pyg ... ep-3028907.
Dave
Dave
- chip64
- Posts: 15
- Joined: Sun Feb 10, 2013 9:39 pm
Re: PyGamer CircuitPython buttons
Thanks, I completely missed that.
- dastels
- Posts: 15656
- Joined: Tue Oct 20, 2015 3:22 pm
Re: PyGamer CircuitPython buttons
Those tutorials are full of little gems. It does take some careful reading to find them sometimes.
Dave
Dave
Please be positive and constructive with your questions and comments.