Fixes for real RPi

This commit is contained in:
2023-05-02 07:01:28 +02:00
parent 62b97f3f01
commit e1b201376f
2 changed files with 29 additions and 10 deletions

11
test.py
View File

@ -1,5 +1,6 @@
import logging
from pulses import pulses
import time
logging.basicConfig(format='%(name)s %(threadName)s %(msg)s')
@ -8,4 +9,12 @@ log.setLevel('DEBUG')
led = pulses.ledPulse(12)
led.start()
# led.set(delay=1/100, valueMode="sin", max=20)
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)
time.sleep(4)
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)
time.sleep(4)
led.stop()