I have, in spite of my programming, managed to get a light to flash in sync with the temperature. A temperature of 71F flashes seven times, pauses then flashes once. But a temperature of 70F flashes just like 71. (the led is tricolor, common anode - so low is "on")
How does one get a for next loop to flash Zero times?
Dissecting the program, I tried
for b5= 0 to 0 flashes once
b5= 0 to 1 flashes twice
b5= 1 to 1 flashes once
b5= 1 to N flashes N
How does one get a for next loop to flash Zero times?
Dissecting the program, I tried
for b5= 0 to 0 flashes once
b5= 0 to 1 flashes twice
b5= 1 to 1 flashes once
b5= 1 to N flashes N
Code:
runn:
for b5 = 0 to 1 low red
pause 200
high red
pause 200
next
pause 1000
goto runn