4 Display Potentiometer Values on LEDs Using A/D
This example uses the same device and Port A LEDs as the previous example. However, in this example, values from a potentiometer on the demo board provide A/D input through another Port A pin that is converted and displayed on the LEDs.
Instead of generating code by hand, the MPLAB Code Configurator (MCC) is used. For information on the MCC, including the MPLAB Code Configurator 3.xx User’s Guide (DS40001829), go to the MPLAB Code Configurator web page.