☰
Debian Codegraph
@
5.3.5+repack-1
/
/
microhope
/
microhope-doc
/
prog
/
adc.c
☽
☼
microhope/microhope-doc/prog/adc.c
code
plain
raw
GPL-3
2010-2018 Ajith Kumar B.P <
[email protected]
>
debian/copyright
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