' ' EXAMPLE2 ' ' PUSH BUTTON TO CONTROL LED ON & OFF CON _clkmode = xtal2 + pll8x '80MHz (10MHz x 8) _xinfreq = 10_000_000 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 IF INA [15]:=1 OutA[0]:= 1 IF INA [15]:=0 OutA[0]:= 0