PyGamer CircuitPython buttons

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
chip64
 
Posts: 15
Joined: Sun Feb 10, 2013 9:39 pm

PyGamer CircuitPython buttons

Post by chip64 »

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?

User avatar
dastels
 
Posts: 15656
Joined: Tue Oct 20, 2015 3:22 pm

Re: PyGamer CircuitPython buttons

Post by dastels »

It's covered in the PyGamer tutorial guide. Specifically: https://learn.adafruit.com/adafruit-pyg ... ep-3028907.

Dave

User avatar
chip64
 
Posts: 15
Joined: Sun Feb 10, 2013 9:39 pm

Re: PyGamer CircuitPython buttons

Post by chip64 »

Thanks, I completely missed that.

User avatar
dastels
 
Posts: 15656
Joined: Tue Oct 20, 2015 3:22 pm

Re: PyGamer CircuitPython buttons

Post by dastels »

Those tutorials are full of little gems. It does take some careful reading to find them sometimes.

Dave

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”