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 @@ -26,13 +26,13 @@ Each of the LEDs can be set to one of 8 colours:
26
26
27
27
~~~~~ python
28
28
# Set LED A to red
29
- R.kch[UserLED.A] = Colour.RED
29
+ R.kch.leds [UserLED.A] = Colour.RED
30
30
31
31
# Set LED B to cyan
32
- R.kch[UserLED.B] = Colour.CYAN
32
+ R.kch.leds [UserLED.B] = Colour.CYAN
33
33
34
34
# Turn LED C off
35
- R.kch[UserLED.C] = Colour.OFF
35
+ R.kch.leds [UserLED.C] = Colour.OFF
36
36
~~~~~
37
37
38
38
The available colours are:
@@ -52,11 +52,11 @@ Alternatively you can set the red, green and blue channels for a given LED separ
52
52
53
53
~~~~~ python
54
54
# Turn on the blue segment of LED A
55
- R.kch[UserLED.A].b = True
55
+ R.kch.leds [UserLED.A].b = True
56
56
57
57
# Turn off the red segment of LED B
58
- R.kch[UserLED.B].r = False
58
+ R.kch.leds [UserLED.B].r = False
59
59
60
60
# Turn on green segment of LED B
61
- R.kch[UserLED.B].g = True
61
+ R.kch.leds [UserLED.B].g = True
62
62
~~~~~
You can’t perform that action at this time.
0 commit comments