Shop OBEX P1 Docs P2 Docs Learn Events
Simple LED Blink Code Help needed — Parallax Forums

Simple LED Blink Code Help needed

NWCCTVNWCCTV Posts: 3,629
edited 2015-05-30 20:56 in General Discussion
In June's N&V Spin Zone JM has a tutorial for RFID. There are some examples for blinking LED's at the beginning and for the life of me I can't get them to work. Very simple code but I keep getting 'Expected an Instruction or Variable" error at the io.high command. Any help is appreciated. I know I am just overlooking something. I want to try the RFID project but I need to get this part going first.
pub main | t

 t := cnt
 repeat
   io.high(LED_26)
   waitcnt(t += (100 * MS_001))
   io.low(LED_26)
   waitcnt(t += (400 * MS_001))

Comments

Sign In or Register to comment.