Skip to content

Commit 92e1e34

Browse files
committed
Merge branch 'clarify-led-colours'
2 parents 2eddc39 + c9a1364 commit 92e1e34

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

programming/leds.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ robot.kch.leds[LED_C].colour = Colour.OFF
4141
The available colours are:
4242

4343
~~~~~ python
44-
OFF
45-
RED
46-
YELLOW
47-
GREEN
48-
CYAN
49-
BLUE
50-
MAGENTA
51-
WHITE
44+
Colour.OFF
45+
Colour.RED
46+
Colour.YELLOW
47+
Colour.GREEN
48+
Colour.CYAN
49+
Colour.BLUE
50+
Colour.MAGENTA
51+
Colour.WHITE
5252
~~~~~
5353

5454
Alternatively you can set the red, green and blue channels for a given LED separately:

0 commit comments

Comments
 (0)