8/1/2016 4:28 PM | |
Posts: 8 Rating: (13) |
Hello, the USER Button does not have a GPIO pin number to use with the mraa library, becuase it is not a "normal" pin used in the Arduino context. You have to query the status of this button via the internal linux GPIOs. The USER button has the internal GPIO numer 63. Attached there is an example how to read out the internal GPIO for the USER Button. Note: The status is 0 if the button is pressed and 1 if the button is released. AttachmentUserButton.txt (1394 Downloads) |
This contribution was helpful to3 thankful Users |
1/19/2017 4:15 PM | |
Joined: 4/28/2015 Last visit: 11/12/2024 Posts: 3345 Rating: (379)
|
Hi 3.41malDaumen, that's true, you can't use a digital input block of node-red. But there is another possiblity to query the user button via node-red In the file attached you can find an example for node-red. Just copy the code in the file and import in to node-red via menu -> import -> clipboard. You have to export the pin 63 once and then you can read out its value. Best regards! Attachmentquery_user_button_node_red.txt (1101 Downloads) |
Not working for IOT2050 support anymore from March 1st, 2024. |
|
This contribution was helpful to2 thankful Users |
1/19/2017 5:03 PM | |
Joined: 10/24/2013 Last visit: 12/3/2020 Posts: 7 Rating: (2) |
Thank you, it works. One additional question: How do I connect the output to a GPIO digital output? |
Follow us on