From 050a4d8795a247ae161f04d8d0725a77ca301e03 Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Thu, 22 Aug 2019 15:24:59 +0200 Subject: [PATCH] Fixing up the LED color info. --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1093ec9..40765b5 100644 --- a/README.md +++ b/README.md @@ -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) >>> ```