We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fc4d1bf + d0054d0 commit f659b00Copy full SHA for f659b00
examples/tlc5947_simpletest.py
@@ -42,14 +42,17 @@
42
start_pwm = 0
43
end_pwm = 32767 # 50% (32767, or half of the maximum 65535):
44
45
-for pin in (red, green, blue):
46
- # Brighten:
47
- for pwm in range(start_pwm, end_pwm, step):
48
- pin.duty_cycle = pwm
+while True:
+ for pin in (red, green, blue):
+ # Brighten:
+ print("Brightening LED")
49
+ for pwm in range(start_pwm, end_pwm, step):
50
+ pin.duty_cycle = pwm
51
- # Dim:
- for pwm in range(end_pwm, start_pwm, 0 - step):
52
+ # Dim:
53
+ print("Dimming LED")
54
+ for pwm in range(end_pwm, start_pwm, 0 - step):
55
56
57
# Note if auto_write was disabled you need to call write on the parent to
58
# make sure the value is written (this is not common, if disabling auto_write
0 commit comments