User manual

24
Cha
q
ue couleur a sa
p
ro
p
re
f
onction dans le Sketch. Ensuite la
f
onction rou
g
e(
)
est
i
ntro
-
duite
:
v
oid rou
g
e()
{
Serial.println(« Rouge »)
;
analogWrite
(
redPin, HIGH
);
analo
g
Write(
g
reenPin, LOW);
analogWrite(bluePin, LOW)
;
}
L’a
pp
l
i
Lappli correspondante se trouve dans le fi chier RVB.aia. Importez le fi chier dans AI2
.
Un texte correspondant est envoyé par l’inter
f
ace Bluetooth indépendamment du bouton
appuy
é
: Pour rouge rouge
\
n
e
st envoy
é
, pour
bl
eu
bl
eu\n
p
our vert
v
ert
\
n et
p
our
l
’arr
ê
t
a
rrêt\n
.
Les DELs sont a
ll
um
é
es par quatre
b
outons.
L
es
b
l
ocs
da
n
s
AI2
15007-3 Conrad Adventskalender Internet of Things 2017_fr.indd 2415007-3 Conrad Adventskalender Internet of Things 2017_fr.indd 24 13.08.2017 16:58:2313.08.2017 16:58:23