24 lines
596 B
Python
24 lines
596 B
Python
import logging
|
|
from pulses import pulses
|
|
import time
|
|
|
|
logging.basicConfig(format='%(name)s %(threadName)s %(msg)s')
|
|
|
|
log = logging.getLogger()
|
|
log.setLevel('DEBUG')
|
|
|
|
led = pulses.pulse(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)
|
|
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()
|