' Blinky example ' Compubotics eBASIC Compiler ' ' This example blinks an LED attached to PORTB.0 ' using the native pin functionality ' Unlike the HIGH and LOW Stamp commands, this method gives us access ' to all pins on the device. ' #device "16f877" #clock 16000000 #debug OFF Forever con 1 PinHigh con 1 PinLow con 0 PinOut con 0 Main: ' set PORTB:0 to output TRISB.bit0 = PinOut while (FOREVER) PORTB.bit0 = PinHigh pause 100 PORTB.bit0 = PinLow pause 100 wend END