doggington
Member
I am useing this little program to count a flashing IR LED
counter:
count 1,1000, w1
sertxd ( "the value of w1 is" , #w1,13,10) ' displays value on screen
pause 100
goto counter
the LED is flashing via a 555 timer at 148 flashes per sec
this works nicely but what I want to achieve is to trigger an event when the w1 reaches a specific figure i.e. 96 or 245 so that I can use this system on a rotating shaft for positioning
can anyone point me towards the right code to achieve this
many thanks in advance
doggington
counter:
count 1,1000, w1
sertxd ( "the value of w1 is" , #w1,13,10) ' displays value on screen
pause 100
goto counter
the LED is flashing via a 555 timer at 148 flashes per sec
this works nicely but what I want to achieve is to trigger an event when the w1 reaches a specific figure i.e. 96 or 245 so that I can use this system on a rotating shaft for positioning
can anyone point me towards the right code to achieve this
many thanks in advance
doggington