...
Code Block | ||
---|---|---|
| ||
import revpimodio2
rpi = revpimodio2.RevPiModIO(autorefresh=True)
rpi.io.RevPiLED.value = 1
rpi.io.RevPiLED.value = 0
rpi.cleanup() |
Python I/O Bit Mirror
Code Block | ||
---|---|---|
| ||
import revpimodio2
import time
rpi = revpimodio2.RevPiModIO(autorefresh=True)
while True:
rpi.io.O_1.value = rpi.io.I_1.value
time.sleep(0.02)
revpi.cleanup() |
Video Tutorials
Also, take a look at our video tutorials about Python
...