12/29/2022 10:44 AM | |
Joined: 12/15/2016 Last visit: 8/15/2023 Posts: 32 Rating:
|
I'm also having problems with the palette 'node-red-node-intel-gpio' I installed it normally with 'npm install node-red-node-intel-gpio' but when starting the node-red I get the attached image. the example image is V1.2.2. node.js version is 18.12.1. I tried to do 'npm rebuild' and 'npm install' without good result. I don't know what to do, could someone tell me how to collect/manage the inputs/outputs? thanks. ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 12/29/2022 12:38:19New subject after splitting Last edited by: edurov at: 12/29/2022 13:56:16 |
|
1/3/2023 3:09 PM | |
Joined: 4/28/2015 Last visit: 9/21/2023 Posts: 3256 Rating:
|
Hi, seems to be a deadlock with the NodeJS versions.. Another way to retrieve the status of the GPIOs is to use the built-in mraa console tool. With the help of the exec node in node-red you can run console commands. I attached an example to read the status of GPIO 1 every second and convert the string output to a number. Best regards! Attachmentexec_mraa.zip (159 Downloads) |
Follow us on