diff options
| author | Scott Shawcroft <scott.shawcroft@gmail.com> | 2018-02-12 18:34:59 -0800 |
|---|---|---|
| committer | Scott Shawcroft <scott.shawcroft@gmail.com> | 2018-02-12 18:34:59 -0800 |
| commit | a5220010f2fd4245424ec75a093f652f63ae09ec (patch) | |
| tree | 94cb60dd8f5fa521d6ab46f00c92e17beb50b1b3 | |
| parent | 4cc2cf0e8fc8584a8bd564c21f5448433a7f6a31 (diff) | |
Dim the neopixel status LED through the brightness control.
| -rw-r--r-- | atmel-samd/rgb_led_status.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/atmel-samd/rgb_led_status.c b/atmel-samd/rgb_led_status.c index 83d3f9916..5ce74fb4f 100644 --- a/atmel-samd/rgb_led_status.c +++ b/atmel-samd/rgb_led_status.c @@ -12,14 +12,15 @@ #include "rgb_led_status.h" #include "samd21_pins.h" -uint8_t rgb_status_brightness = 255; #ifdef MICROPY_HW_NEOPIXEL +uint8_t rgb_status_brightness = 63; static uint8_t status_neopixel_color[3]; static digitalio_digitalinout_obj_t status_neopixel; #endif #if defined(MICROPY_HW_APA102_MOSI) && defined(MICROPY_HW_APA102_SCK) +uint8_t rgb_status_brightness = 255; static uint8_t status_apa102_color[12] = {0, 0, 0, 0, 0xff, 0, 0, 0}; #ifdef CIRCUITPY_BITBANG_APA102 static bitbangio_spi_obj_t status_apa102; |
