Instructions

80 16 | Digitalvolt meter mit Bargrafanzeige undUSB-Schnittstelle
16
B11000
,
045
B11000
,
046
}
;
047
04
8
by
te M
y
C
h
ar3
[
8
]
=
{
049
B11100
,
050
B11100
,
051
B11100
,
052
B11100
,
053
B11100
,
054
B11100
,
055
B11100
,
056
B11100
,
057
}
;
058
0
5
9
b
y
te M
y
Char4[8] =
{
060
B11110
,
061
B11110
,
062
B11110
,
063
B11110
,
064
B11110
,
065
B11110
,
066
B11110
,
067
B11110
,
068
}
;
069
0
7
0
b
y
te M
y
Char5[8] =
{
071
B11111
,
072
B11111
,
073
B11111
,
074
B11111
,
075
B11111
,
076
B11111
,
077
B11111
,
078
B11111
,
079
}
;
080
08
1
int adc_AVG(b
y
te channel
)
082
{
083
total= total – readin
g
s[index]; 084
readin
g
s[index] = analo
g
Read(channel)
;
085
total= total + readin
g
s[index]; 086
index = index + 1
;
087
if
(
in
d
ex >= numRea
d
in
g
s
)
in
d
e x = 0 ; 088
return total / numReadin
g
s; 089
}
090
10174-5 Conrad Arduino Lernpaket_09.indd 8010174-5 Conrad Arduino Lernpaket_09.indd 80 14.07.2015 08:10:3314.07.2015 08:10:33