You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
261 B
16 lines
261 B
7 years ago
|
import time
|
||
|
|
||
|
import gex
|
||
|
|
||
|
with gex.Client(gex.TrxRawUSB()) as client:
|
||
|
pwm = gex.PWMDim(client, 'dim')
|
||
|
|
||
|
pwm.start()
|
||
|
pwm.set_duty_single(1, 500)
|
||
|
for i in range(2000, 200, -15):
|
||
|
pwm.set_frequency(i)
|
||
|
time.sleep(0.05)
|
||
|
|
||
|
pwm.stop()
|
||
|
|