Skip to content

Commit dcd67a4

Browse files
authored
Merge pull request #121 from maghiel/doc-rgbled_effects
Fix docblock of RGBLED pulse and cycle still referring to on_color instead of colors
2 parents 2af708e + dcec24e commit dcd67a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

picozero/picozero.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ def pulse(self, fade_times=1, colors=((0, 0, 0), (1, 0, 0), (0, 0, 0), (0, 1, 0)
11031103
:param float fade_out_time:
11041104
Number of seconds to spend fading out. Defaults to 1.
11051105
:type colors: tuple
1106-
:param on_color:
1106+
:param colors:
11071107
Tuple of colours to pulse between in order. Defaults to red, off, green, off, blue, off.
11081108
:type off_color: ~colorzero.Color or tuple
11091109
:type n: int or None
@@ -1122,7 +1122,7 @@ def cycle(self, fade_times=1, colors=((1, 0, 0), (0, 1, 0), (0, 0, 1)), n=None,
11221122
:param float fade_times:
11231123
Number of seconds to spend fading out. Defaults to 1.
11241124
:type colors: tuple
1125-
:param on_color:
1125+
:param colors:
11261126
Tuple of colours to cycle between. Defaults to red, green, blue.
11271127
:type n: int or None
11281128
:param n:

0 commit comments

Comments
 (0)