☰
Debian Codegraph
@
5.3.5+repack-1
/
/
microhope
/
microhope-doc
/
prog
/
adc_loop.c
☽
☼
microhope/microhope-doc/prog/adc_loop.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
for(;;)
13
{
14
lcd_clear();
15
data = read_adc(0);
16
lcd_put_int(data);
17
delay(1000); // 2000 usec delay
18
}
19
}
20