I believe it may execute faster than a series of if-then loops and wouldn't be as hard on the stack - if the stack is even a concern.
Thanks for all you do, This Buds for you, Bud!
- Albert Einstein
Explore... Chat... Share...
Moderator: Mmiscool
goto [place]
goto "[place]"
let destination="[place]"
goto destination
dim destination(10)
let destination(5)="[place]"
goto destination(5)
let destinations="[po] [pwo] [servo] [pi] [pwi] [ai] [temp]"
' Magical code happens here which encounters a device on pin P performing function FNC with state S (for outputs)
let place=word(destinations,fnc)
gosub place
' Code continues with return value in RV set by called routine
wait
[po]
io(po,p,s)
return
[pi]
rv = io(pi,p)
return
[ai]
rv = io(ai)
return
' Etc, etc.
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]