Data hosted with ♥ by
Pastebin.com
-
Download Raw
-
See Original
import
RPi.
GPIO
as
GPIO
GPIO.
setup
(
1
,
GPIO.
IN
)
if
GPIO.
input
(
1
)
:
print
(
'Nivel de entrada HIGH'
)
else
:
print
(
'Nivel de entrada LOW'
)