Propmaker lightsaber additional switches

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
BJCM
 
Posts: 4
Joined: Sat May 08, 2021 10:11 pm

Propmaker lightsaber additional switches

Post by BJCM »

I am trying to plan out the wiring for 2 additional momentary buttons on the Propmaker mounted on an M4. I know I need to wire one side of each button to separate, unused digital pins. However, what pin does the other side of the button connect to so it will register the button press?

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

Re: Propmaker lightsaber additional switches

Post by dastels »

Ground.

Then in the code you set that pin as an input with a pullup. Seeing LOW/False/0 on the pin means the button is pressed.

Dave

User avatar
BJCM
 
Posts: 4
Joined: Sat May 08, 2021 10:11 pm

Re: Propmaker lightsaber additional switches

Post by BJCM »

Thank you for the quick and helpful reply.

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

Return to “General Project help”