mirror of
git://soft.sys114.com/WiringPi2-Python
synced 2025-12-19 01:38:42 +09:00
5 lines
111 B
Python
5 lines
111 B
Python
import wiringpi
|
|
io = wiringpi.GPIO(wiringpi.GPIO.WPI_MODE_PINS)
|
|
print io.digitalRead(1)
|
|
print io.analogRead(1)
|