File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ Each of the LEDs can be set to one of 8 colours:
27
27
28
28
~~~~~ python
29
29
# Set LED A to red
30
- R .kch.leds[LED_A ].colour = Colour.RED
30
+ robot .kch.leds[LED_A ].colour = Colour.RED
31
31
32
32
# Set LED B to cyan
33
- R .kch.leds[LED_B ].colour = Colour.CYAN
33
+ robot .kch.leds[LED_B ].colour = Colour.CYAN
34
34
35
35
# Turn LED C off
36
- R .kch.leds[LED_C ].colour = Colour.OFF
36
+ robot .kch.leds[LED_C ].colour = Colour.OFF
37
37
~~~~~
38
38
39
39
The available colours are:
@@ -53,11 +53,11 @@ Alternatively you can set the red, green and blue channels for a given LED separ
53
53
54
54
~~~~~ python
55
55
# Turn on the blue segment of LED A
56
- R .kch.leds[LED_A ].b = True
56
+ robot .kch.leds[LED_A ].b = True
57
57
58
58
# Turn off the red segment of LED B
59
- R .kch.leds[LED_B ].r = False
59
+ robot .kch.leds[LED_B ].r = False
60
60
61
61
# Turn on the green segment of LED B
62
- R .kch.leds[LED_B ].g = True
62
+ robot .kch.leds[LED_B ].g = True
63
63
~~~~~
You can’t perform that action at this time.
0 commit comments