#include #include "..\..\Lib\uPAC5000.h" void main(void) { int position; InitLib(); /* InitLib() must be called before other functions in the library may be used */ position=RotarySwitch_Read(); Print("Rotary Switch Position = %d\r\n", position); Delay(10); }