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 45aaacc + 83ec4c2 commit b3c5d13Copy full SHA for b3c5d13
CircuitPython_Templates/asyncio/code.py
@@ -58,9 +58,12 @@ async def rainbow_cycle(animation_controls):
58
async def blink(animation_controls):
59
"""Blink animation on ring two."""
60
while True:
61
- ring_two[:] = [(0, 0, abs(ring_two[0][2] - 255))] * num_pixels
+ ring_two.fill((0, 0, 255))
62
+ ring_two.show()
63
await asyncio.sleep(animation_controls.delay)
64
+ ring_two.fill((0, 0, 0))
65
ring_two.show()
66
+ await asyncio.sleep(animation_controls.delay)
67
await asyncio.sleep(animation_controls.wait)
68
69
0 commit comments