Problem with Output/code
Posted: Thu Oct 11, 2018 11:21 pm
Folks - I have a program which toggles two outputs fairly rapidly.
The outputs operate correctly when the ESP is programmed in this manner:
The way this is written makes it awkward to read/edit and I would like to spread it out over a few lines as follows.
I have tried different separators such as , ; : etc to no avail as most of them bring up error messages and halt the program. The | as above lets the program run ok but the outputs don't trigger - as the first snippet does.
Can anyone point me in the right direction please.
Regards Hooter
The outputs operate correctly when the ESP is programmed in this manner:
Code: Select all
io(po,5,1)
delay 5
io(po,5,0)
delay 5
io(po,4,1)
delay 5
io(po,4,0)
delay 5
io(po,5,1)
delay 5
io(po,5,0)
The way this is written makes it awkward to read/edit and I would like to spread it out over a few lines as follows.
Code: Select all
io(po,5,1)|delay 5|io(po,5,0)|delay 5|io(po,4,1)|delay 5|io(po,4,0)|
io(po,5,1)|delay 5|io(po,5,0)|delay 5|io(po,4,1)|delay 5|io(po,4,0)|
I have tried different separators such as , ; : etc to no avail as most of them bring up error messages and halt the program. The | as above lets the program run ok but the outputs don't trigger - as the first snippet does.
Can anyone point me in the right direction please.
Regards Hooter