# Come collegare il pusante

**URL:** <https://forum.xod.io/t/come-collegare-il-pusante/6094>\
**Category:** Uncategorized\
**Created:** [May 31, 2022, 6:38am UTC](https://forum.xod.io/t/come-collegare-il-pusante/6094 "2022-05-31T06:38:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fiorenzoruscelli0](https://avatars.discourse-cdn.com/v4/letter/f/e9bcb4/32.png) [@fiorenzoruscelli0](https://forum.xod.io/u/fiorenzoruscelli0)\
**Post date:** [May 31, 2022, 6:38am UTC](https://forum.xod.io/t/come-collegare-il-pusante/6094/1 "2022-05-31T06:38:15Z")

</div>

Come devo collegare per pare apparire una scritta sul display quando premo il pulsate e spegnere al rilascio del pulsante  
grazie a tutti per l’aiuto

 ![Screenshot_2](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/4/4f927ced3afb6a0bedaf38cd9312a89ee8255d90.png)

---

<div class="post-metadata">

**Author:** ![wayland](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/wayland/32/1590_2.png) [@wayland](https://forum.xod.io/u/wayland)\
**Post date:** [May 31, 2022, 8:41am UTC](https://forum.xod.io/t/come-collegare-il-pusante/6094/2 "2022-05-31T08:41:50Z")

</div>

> How should I connect to appear a message on the display when I press the button and turn off when the button is released  
> thank you all for your help

Try:

 ![Screenshot 2022-05-31 at 09.05.05](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/5/59973467f60ecc86a0dc99fc572851b8edeb1139.png)

[oled-button.xodball](https://forum.xod.io/uploads/short-url/60X5sYJvQq8NfIpwVNadr58myBO.xodball) (6.3 KB)

Depending on the behaviour of your button, you may need to swap the **pulse-on-false** and **pulse-on-true** nodes.

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [May 31, 2022, 6:34pm UTC](https://forum.xod.io/t/come-collegare-il-pusante/6094/3 "2022-05-31T18:34:07Z")

</div>

Alternately, you can use button → if-else → draw-text-Message to switch between “Message” and " " (enough spaces to over-write “Message”), but you will need to add send-buffer as wayland showed and add pulse-on-change between button and draw-text-UPD.

Just 2 different options…which is “better” depends on your code & if one allows you to reduce total nodes needed, or make the program clearer. With this second option, you can replace if-else with ‘select’ node and display several messages. With walyand’s solution, you can add more draw-text nodes to display several messages.

---

<div class="post-metadata">

**Author:** ![fiorenzoruscelli0](https://avatars.discourse-cdn.com/v4/letter/f/e9bcb4/32.png) [@fiorenzoruscelli0](https://forum.xod.io/u/fiorenzoruscelli0)\
**Post date:** [May 31, 2022, 7:12pm UTC](https://forum.xod.io/t/come-collegare-il-pusante/6094/4 "2022-05-31T19:12:23Z")

</div>

Grazie a tutti  
per le soluzioni che mi avete dato

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [June 30, 2022, 7:12pm UTC](https://forum.xod.io/t/come-collegare-il-pusante/6094/5 "2022-06-30T19:12:31Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
