-
Hello, is there any way in the script to bypass this issue, I've read (not tested) that the code should be digitalWrite(GPIO#, HIGH); before pinMode(GPIO#, OUTPUT); and not declare the pinMode() first.. but we cannot actually write it, we can only use json. any help will be appreciated! script example |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found the problem, I needed to add the following in the io array so, the final script is
|
Beta Was this translation helpful? Give feedback.
I found the problem, I needed to add the following in the io array
"io":[ [[0],6], [[5,4,14,12],2,1,1], [[13],6,1] ],
so, the final script is
{ "c":{ "io":[ [[0],6], [[5,4,14,12],2,1,1], [[13],6,1] ], "b":[[0,5]], "u":1 }, "a":[ { "t":1, "s":5, "0":{"r":[[12,1]]}, "1":{"r":[[12,0]]}, "es": [ { "t":1, "s":5, "0":{"r":[[4,1]]}, "1":{"r":[[4,0]]} }, { "t":1, "s":5, "0":{"r":[[5,1]]}, "1":{"r":[[5,0]]} }, { "t":1, "s":5, "0":{"r":[[14,1]]}, "1":{"r":[[14,0]]} }, { "t":1, "s":5, "g0":[[13]], "g1":[[13,0]] }] } ] }