0

Propmaker lightsaber additional switches
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Propmaker lightsaber additional switches

by BJCM on Sat May 08, 2021 10:32 pm

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?

BJCM
 
Posts: 2
Joined: Sat May 08, 2021 10:11 pm

Re: Propmaker lightsaber additional switches

by dastels on Sun May 09, 2021 9:54 am

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

dastels
 
Posts: 6430
Joined: Tue Oct 20, 2015 3:22 pm

Re: Propmaker lightsaber additional switches

by BJCM on Sun May 09, 2021 10:08 am

Thank you for the quick and helpful reply.

BJCM
 
Posts: 2
Joined: Sat May 08, 2021 10:11 pm

Please be positive and constructive with your questions and comments.