// Output to LED on RA1 // // #include "http://byvac.com/mBlib/flb/Library/rookie/MX170_rookie3_part1.bas" // #include "http://byvac.com/mBlib/flb/Library/rookie/MX170_rookie_part2.bas" // constant LED {PORTA(PORT),0} function go() // set up RA0 for output io_pinRole(*LED(),OUT,WOFF) // set RA0 as output while comkey?(2) = 0 io_pinSet(*LED(),2) // toggle is 2 wait(1000) wend endf