Propmaker lightsaber additional switches
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- BJCM
- Posts: 4
- Joined: Sat May 08, 2021 10:11 pm
Propmaker lightsaber additional switches
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?
- dastels
- Posts: 15667
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Propmaker lightsaber additional switches
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
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
- BJCM
- Posts: 4
- Joined: Sat May 08, 2021 10:11 pm
Re: Propmaker lightsaber additional switches
Thank you for the quick and helpful reply.
Please be positive and constructive with your questions and comments.