' ========================================================================= ' File....... SW21-EX01-Flash_LED.SXB ' Purpose.... Simple LED Flasher ' Author..... (C) 2000 - 2005, Parallax, Inc. ' E-mail..... support@parallax.com ' Started.... 01 SEP 2005 ' Updated.... 23 MAR 2007 by TSaavik for SX28 ' ========================================================================= ' -----[ Program Description ]--------------------------------------------- ' ' Flashes an LED connected to RB.4. This program will work, unmodified, on ' the SX28. ' ------------------------------------------------------------------------- '------{ Device Settings ]------------------------------------------------- DEVICE SX28,TURBO,BANKS8,OSCHS3,SYNC,OPTIONX FREQ 50_000_000 ID "EX01" ' -----[ I/O Definitions ]------------------------------------------------- AlarmLed PIN RB.4 ' LED on RB.4 ' -----[ Constants ]------------------------------------------------------- FlashTm CON 500 ' delay 500 milliseconds 'FlashTm CON 1 ' delay 1 milliseconds for sxsim ' -----[ Initialization ]------------------------------------------------- PROGRAM Main ' -----[ Program Code ]---------------------------------------------------- Main: HIGH AlarmLed ' turn the LED on PAUSE FlashTm LOW AlarmLed ' turn the LED off PAUSE FlashTm GOTO Main