mirror of
https://github.com/kevinveenbirkenbach/erinaco.git
synced 2024-11-23 22:41:05 +01:00
10 lines
184 B
Python
10 lines
184 B
Python
|
import RPi.GPIO as GPIO
|
||
|
GPIO.setmode(GPIO.BCM);
|
||
|
pin=0;
|
||
|
while pin<=40:
|
||
|
GPIO.setup(pin, GPIO.IN);
|
||
|
print("Pin {0}; Value {1};".format(pin,GPIO.input(pin)));
|
||
|
pin += 1;
|
||
|
GPIO.cleanup();
|
||
|
|