Fixing up the LED color info.

This commit is contained in:
Tim 'mithro' Ansell 2019-08-22 15:24:59 +02:00
parent cdec332312
commit 050a4d8795

View file

@ -338,9 +338,12 @@ There is a wrapper in Python that simplifies the process of writing to these reg
Try changing the color of the three LEDs:
```python
>>> rgb.write_raw(0b0001, 255)
>>> rgb.write_raw(0b1010, 14)
>>> rgb.write_raw(0b1011, 1)
>>> LED_PULSE_WIDTH_RED = 0b0001 # LEDDPWRR
>>> LED_PULSE_WIDTH_GREEN = 0b0010 # LEDDPWRG
>>> LED_PULSE_WIDTH_BLUE = 0b0011 # LEDDPWRG
>>> rgb.write_raw(LED_PULSE_WIDTH_RED, 255)
>>> rgb.write_raw(LED_PULSE_WIDTH_GREEN, 14)
>>> rgb.write_raw(LED_PULSE_WIDTH_BLUE, 1)
>>>
```