//From TicTacToe project on Tahmid's Blog //In touch_master.h //Pin Change for YM, now PortB Pin 3 #define YM_INPUT() {mPORTBSetPinsAnalogIn(BIT_3);} #define YM_OUTPUT() {mPORTBSetPinsDigitalOut(BIT_3);} #define YM_HIGH() {mPORTBSetBits(BIT_3);} #define YM_LOW() {mPORTBClearBits(BIT_3);} #define YM_PD() {CNPDBSET = BIT_3;} //in touch_master.c //Line 23, redefine ADC SetChanADC10(ADC_CH0_POS_SAMPLEA_AN5); // configure to sample AN //Line 50 SetChanADC10(ADC_CH0_POS_SAMPLEA_AN5); // configure to sample AN