Skip to content

Commit c9a1364

Browse files
committed
Clarify the LED colour names
This makes these easier to copy/paste into code as well as making it easier to type-check the docs.
1 parent c9d6efb commit c9a1364

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)