Debian Codegraph @

microhope/microhope-doc/prog/adc.c

raw
1 // Reads ADC channel 0 and diplays the result on the LCD
2
3 #include "pmdk_lcd.c"
4 #include "pmdk_adc.c"
5
6 main()
7 {
8 uint16_t data;
9
10 lcd_init();
11 adc_enable();
12 data = read_adc(0);
13 lcd_put_int(data);
14 }
15