This will blink an LED on any pin, as specified in the BLINK_TEST define.
If the define is commented out, it will bypass the blinky and start at the main program.
Code:DEFINE BLINK_TEST PORTB,0 ' ' Variables, Constants etc. ' ;----[Blinky test]------USE( DEFINE BLINK_TEST PORTB,0 )----------------- BLINK_LED VAR BIT EXT @ #undefine BLINK_LED @ #define BLINK_LED BLINK_TEST @ ifdef BLINK_TEST INCLUDE "AllDigital.pbp" Blink: TOGGLE BLINK_LED PAUSE 500 GOTO Blink @ endif
Bookmarks