Skip to content

Commit de4ee00

Browse files
author
Martin O'Hanlon
committed
added colour alias
1 parent 4fc0e80 commit de4ee00

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

picozero/picozero.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from ctypes.wintypes import RGB
12
from machine import Pin, PWM, Timer, ADC
23
from micropython import schedule
34
from time import ticks_ms, sleep
@@ -1080,6 +1081,8 @@ def cycle(self, fade_times=1, colors=((1, 0, 0), (0, 1, 0), (0, 0, 1)), n=None,
10801081
on_times = 0
10811082
self.blink(on_times, fade_times, colors, n, wait, fps)
10821083

1084+
RGBLED.colour = RGBLED.color
1085+
10831086
###############################################################################
10841087
# INPUT DEVICES
10851088
###############################################################################

0 commit comments

Comments
 (0)