' ' EXAMPLE1 ' ' PUSH BUTTON TO CONTROL LED ON & OFF CON _clkmode = xtal2 + pll8x '80MHz (10MHz x 8) _xinfreq = 10_000_000 VAR BYTE TEMP PUB MAIN TEST_BUTTON PRI TEST_BUTTON DIRA[15]~ ' SET PIN 15 TO INPUT [PUSH BUTTON] [PIN PULLED LOW W/1K & BUTTON PULLS HIGH] DIRA[0]~~ ' SET PIN 0 TO OUTPUT [LED] REPEAT TEMP := INA[15] IF TEMP:=1 OutA[0]:= 1 IF TEMP:=0 OutA[0]:= 0