mirror of
git://soft.sys114.com/WiringPi2-Python
synced 2026-02-06 15:47:21 +09:00
Tidying
This commit is contained in:
4
tests/piglow.py
Normal file
4
tests/piglow.py
Normal file
@@ -0,0 +1,4 @@
|
||||
import wiringpi2 as wiringpi
|
||||
io = wiringpi.GPIO(wiringpi.GPIO.WPI_MODE_PINS)
|
||||
io.piGlowSetup()
|
||||
io.piGlowLeg(1,100)
|
||||
4
tests/test.py
Normal file
4
tests/test.py
Normal file
@@ -0,0 +1,4 @@
|
||||
import wiringpi2 as wiringpi
|
||||
io = wiringpi.GPIO(wiringpi.GPIO.WPI_MODE_PINS)
|
||||
print io.digitalRead(1)
|
||||
print io.analogRead(1)
|
||||
Reference in New Issue
Block a user