Created
February 2, 2018 15:24
-
-
Save pierre-rouanet/2b76b85f766800368a95b835ab94cff7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from itertools import cycle | |
from time import sleep | |
from pyluos import Robot | |
freq = 2.0 | |
if __name__ == '__main__': | |
r = Robot('/dev/cu.usbserial-14310') | |
leds = (r.led_gpios.p2, r.led_gpios.p3, r.led_gpios.p4) | |
for led in cycle(leds): | |
led.toggle() | |
sleep(1.0 / freq) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment