Created
February 23, 2018 22:54
-
-
Save Fhernd/cdf1cc5aa529e53d3a09027f2d4b1ffb to your computer and use it in GitHub Desktop.
Leer datos provenientes del bus GPIO de una Raspberry Pi.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment