Digital Gravity Push Button

Hello.

If you are getting the expected behavior when you press the button, it is likely your button already has an integrated pull resistor, so you should not need to add another one. As for programming that behavior, you can see one method described in this post by BrandonM.

Keep in mind though, you will need to change the channel identified in the example script to match the channel you are using. Additionally, if your button logic is inverted, you might need to change “greater_than” to “less_than”.

- Patrick