(Solved):
Read an analog voltage value from ADC input that is connected to a potentiome ...
???????
Read an analog voltage value from ADC input that is connected to a potentiometer which applies a voltage in the range of \( 0-3.3 \mathrm{~V}(\mathrm{VDD}) \). Convert that voltage value into a digital value using Analog-to-Digital converter. Depending on the digital value turn on 1 of 8 led lights. \( 3.3 / 8 \) is about \( 0.41 \mathrm{~V} \), which means your output should change with every \( 0.41 \mathrm{~V} \) input change. *Please answer with codes.