I have some code that has been stripped down to minimum to try and find why I am getting a variable b2 appearing in my debug. I was using b2 for something else but found it did not work properly. Trying to make code accept either ADC from pot, or optically with IR remote. Thanks
Is b2 reserved?
Is b2 reserved?
If I hold down the remote control to create value to goto UP, I get an acumalative b2 value show in debug windowmain:
IRIN [100, cd], C.1, b1
debug
IF b1=16 then goto UP
cd:
' code in here to read pot value
goto main
UP:
' Increase Brightness
w1=w1+1
PwmOut C.2, 63, w1
goto main