Instructions

35
A
bb
. 4.4: Fußgängerblinklicht mit Taster
.
D
as
P
rogramm
a
mpe
l03
.p
y
steuert die neue Ampelanlage mit dem Taster
f
ür das Fu
ß
gängerblinklicht
.
#
-*- coding: utf-8 -*
-
i
mport
R
Pi.
G
P
IO
as
G
P
IO
i
mport tim
e
G
P
IO
.setmo
d
e
(G
P
IO
.B
C
M
)
rot
=
0
ge
lb
= 1
gruen =
2
blau
=
3
taste
r = 4
A
mpe
l
=[4,18,23,24,25]
10145-5 Raspberry Pi verstehen und anwenden_01.indd 3510145-5 Raspberry Pi verstehen und anwenden_01.indd 35 30.06.2017 10:09:3130.06.2017 10:09:31