# Digital Gravity Push Button

**URL:** https://forum.pololu.com/t/digital-gravity-push-button/19665
**Category:** Servo controllers and servos
**Created:** [July 3, 2020, 7:12pm UTC](https://forum.pololu.com/t/digital-gravity-push-button/19665 "2020-07-03T19:12:17Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![PatrickM](https://forum.pololu.com/user_avatar/forum.pololu.com/patrickm/32/7800_2.png) [@PatrickM](https://forum.pololu.com/u/PatrickM)
#### Post date: [July 6, 2020, 7:56pm UTC](https://forum.pololu.com/t/digital-gravity-push-button/19665/2 "2020-07-06T19:56:51Z")

</div>

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](https://forum.pololu.com/t/maestro-6-channel-starting-sequence/11737/5).

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

---

_[View the full topic](https://forum.pololu.com/t/digital-gravity-push-button/19665)._
