I need to repeat an event every second and flip-flop a GPIO pin, this does NOT work, what is wrong?
on system#boot do
timerset,1,1
let,1,1
enddo
on rules#timer=1 do
if %v1% = 1
oled,1,1,"ha"
gpio,0,0
let,1,2
timerset,1,2
else
oled,1,1,"hi"
gpio,0,1
let,1,1
timerset,1,2
endif
enddo
Timer issue.
Moderators: grovkillen, Stuntteam, TD-er
-
- New user
- Posts: 3
- Joined: 22 Jan 2020, 19:30
- Location: florida us
Re: Timer issue.
I see a typo in two places. Replace enddo with endon at both locations.
- Thomas
- Thomas
-
- New user
- Posts: 3
- Joined: 22 Jan 2020, 19:30
- Location: florida us
Re: Timer issue.
thanks so much, learning curve is quite steep and it was quite a silly mistake.
Who is online
Users browsing this forum: No registered users and 5 guests