Skip to content

Commit 0442894

Browse files
committed
standardize on robot. rather than R.
1 parent b6777d9 commit 0442894

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

programming/leds.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ Each of the LEDs can be set to one of 8 colours:
2727

2828
~~~~~ python
2929
# Set LED A to red
30-
R.kch.leds[LED_A].colour = Colour.RED
30+
robot.kch.leds[LED_A].colour = Colour.RED
3131

3232
# Set LED B to cyan
33-
R.kch.leds[LED_B].colour = Colour.CYAN
33+
robot.kch.leds[LED_B].colour = Colour.CYAN
3434

3535
# Turn LED C off
36-
R.kch.leds[LED_C].colour = Colour.OFF
36+
robot.kch.leds[LED_C].colour = Colour.OFF
3737
~~~~~
3838

3939
The available colours are:
@@ -53,11 +53,11 @@ Alternatively you can set the red, green and blue channels for a given LED separ
5353

5454
~~~~~ python
5555
# Turn on the blue segment of LED A
56-
R.kch.leds[LED_A].b = True
56+
robot.kch.leds[LED_A].b = True
5757

5858
# Turn off the red segment of LED B
59-
R.kch.leds[LED_B].r = False
59+
robot.kch.leds[LED_B].r = False
6060

6161
# Turn on the green segment of LED B
62-
R.kch.leds[LED_B].g = True
62+
robot.kch.leds[LED_B].g = True
6363
~~~~~

0 commit comments

Comments
 (0)