Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement