Newat and clean

This commit is contained in:
2023-05-02 11:58:53 +02:00
parent e1b201376f
commit e9fefee6f0
4 changed files with 35 additions and 67 deletions

View File

@ -11,10 +11,13 @@ led = pulses.ledPulse(12)
led.start()
led.set(delay=1/100, loopMethod="sin", max=20)
time.sleep(4)
led.set(delay=1/100, loopMethod="on", initialMethod="sin", finalMethod=None, max=40)
led.set(delay=1/100, loopMethod="on", initialMethod="sin",
finalMethod=None, max=40)
time.sleep(4)
led.set(delay=1/100, loopMethod="cos", initialMethod=None, finalMethod="sin", max=20)
led.set(delay=1/100, loopMethod="cos", initialMethod=None,
finalMethod="sin", max=20)
time.sleep(4)
led.set(delay=1/100, loopMethod="on", initialMethod="sin", finalMethod="sin", max=40)
led.set(delay=1/100, loopMethod="on", initialMethod="sin",
finalMethod="sin", max=40)
time.sleep(4)
led.stop()