Fixes for real RPi
This commit is contained in:
11
test.py
11
test.py
@ -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()
|
||||
|
Reference in New Issue
Block a user