-
I am testing the LED on GPIO2 of the Moddable Two board and set GPIO to Project 1: Blink
Project 2: On/Off buttonsThis is a separate project, no a flow on the same project.
What am I doing wrong? ListingsListing 1: Blink
Listing 2: On/Off buttons
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 13 replies
-
Thank you for the very clear report. When it doesn't work, do you still see the Debug node output traces? I was able to run both flows on Moddable Two without a problem. To eliminate any possible interaction with the Node-RED Editor, I modified the flows to use repeating injects to toggle the LED. Maybe you could try that? Here's my modified flow for Listing 2: [
{
"id": "af65a212cb5d9857",
"type": "rpi-gpio out",
"z": "cc61b7b4ecba6479",
"name": "",
"pin": "2",
"set": true,
"level": "1",
"freq": "",
"out": "out",
"bcm": true,
"x": 580,
"y": 220,
"wires": []
},
{
"id": "2eae9d517eb042a0",
"type": "inject",
"z": "cc61b7b4ecba6479",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "1",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 190,
"y": 120,
"wires": [
[
"af65a212cb5d9857"
]
]
},
{
"id": "754e7a6b30f2ac26",
"type": "inject",
"z": "cc61b7b4ecba6479",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "1",
"crontab": "",
"once": true,
"onceDelay": 0.6,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 190,
"y": 180,
"wires": [
[
"af65a212cb5d9857"
]
]
}
] I have no idea why the Editor shows the node as "PIN: 3". That's really strange. |
Beta Was this translation helpful? Give feedback.
-
After much investigation, I managed to get Project 2: On/Off buttons working. The hint was that most of the errors I have reported so far seem to be random, the worst case of errors. The trick was:
This is actually the same fix I used for #46 (reply in thread). It would be a good idea to include that step into the standard build procedure. |
Beta Was this translation helpful? Give feedback.
-
One more question related to GPIOs, this time
How to manage backlight with Node-RED? |
Beta Was this translation helpful? Give feedback.
After much investigation, I managed to get Project 2: On/Off buttons working.
The hint was that most of the errors I have reported so far seem to be random, the worst case of errors.
The trick was:
/Users/USER/Projects/moddable/build/tmp/esp32/moddable_two/debug/
folder to get a clean environment.This is actually the same fix I used for #46 (reply in thread).
It would be a good idea to include that step into the standard build procedure.