#chip mega328p, 16#include<UNO_mega328p.h>#define LED portb.5#define IR portd.2DIRLEDOutDIRIRInDIMstateasbitstart:ifIR<>0thenremgosubtoggleendifgotostartend
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
chip mega328p, 16
include <uno_mega328p.h></uno_mega328p.h>
define DIGITAL_13 LED
define DIGITAL_2 IR
DIR LED Out
DIR IR In
DIM state as bit
start:
if IR <> 0 then
rem gosub toggle
end if
goto start
end
syntax errors. uno pinout diag http://marcusjenkins.com/arduino-pinout-diagrams/
Thanks Stan. PD2 and PB5 from nano. Thanks.
Opps. Works if I flipped the #define parameters, works both ways. Had I/O and equate/label flipped.