Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
unsigned int yourReadAdcFunc(void)
{
unsigned int result;
// code as needed
...
return result;
}
void yourLcdDisplayFunc(unsigned int val)
{
// convert val to a string and display it on the LCD
...
}
void main(void)
{
// init LCD
...
// init ADC
...
while(1)
{
unsigned int adcVal;
adcVal = yourReadAdcFun();
yourLcdDisplayFunc(adcVal);
}
}