Pin Definitions

Touch Pad

  • CPS1 = RB1
  • CPS2 = RB2

ADC read pin

  • AN0 / RA0

LED pin

  • CPP2 = RC1

Button

  • INT2 = RB2

Serial

  • RC7 / RC6 = RXD / TXD

Demo

ref