Fix single neopixel status boards

This commit is contained in:
Scott Shawcroft 2021-07-23 15:42:06 -07:00
parent 70cbb4eddb
commit e7fe0d9a71
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA
1 changed files with 7 additions and 2 deletions

View File

@ -39,8 +39,13 @@ static digitalio_digitalinout_obj_t _status_power;
#ifdef MICROPY_HW_NEOPIXEL
uint8_t rgb_status_brightness = 63;
#include "shared-bindings/digitalio/DigitalInOut.h"
#include "shared-bindings/neopixel_write/__init__.h"
#include "shared-bindings/digitalio/DigitalInOut.h"
#include "shared-bindings/neopixel_write/__init__.h"
#ifndef MICROPY_HW_NEOPIXEL_COUNT
#define MICROPY_HW_NEOPIXEL_COUNT (1)
#endif
static uint8_t status_neopixel_color[3 * MICROPY_HW_NEOPIXEL_COUNT];
static digitalio_digitalinout_obj_t status_neopixel;