Did you read section 5.2?
You are using the command ADCIN, which reads the specific ADC channel, which is connected to a certain pin. This value which is read is put into a specifica variable. You aren't using a variable in your code, you haven't specified a place to put it. You are using variables in other spots...so why not here?
How much PIC programming have you done so far? LED blinky? Anything like that?
Bookmarks