Using the ADC
- There are 13 pins that can be used as analog inputs
- 0 volts on an analog input is an ADC reading of 0
- 5 volts on an analog input is an ADC reading of 1023
- Values between 0 and 5 volts give ADC readings between 0 and 1023 (simple linear interpolation)
- Call OpenADC once (before the while loop) then use the block of 4 functions together whenever an ADC reading is needed.