File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ void clear_temp_status() {
293
293
}
294
294
295
295
uint32_t color_brightness (uint32_t color , uint8_t brightness ) {
296
- #if defined(MICROPY_HW_NEOPIXEL ) || (defined(MICROPY_HW_APA102_MOSI ) && defined(MICROPY_HW_APA102_SCK ))
296
+ #if defined(MICROPY_HW_NEOPIXEL ) || (defined(MICROPY_HW_APA102_MOSI ) && defined(MICROPY_HW_APA102_SCK )) || (defined( CP_RGB_STATUS_LED ))
297
297
uint32_t result = ((color & 0xff0000 ) * brightness / 255 ) & 0xff0000 ;
298
298
result += ((color & 0xff00 ) * brightness / 255 ) & 0xff00 ;
299
299
result += ((color & 0xff ) * brightness / 255 ) & 0xff ;
@@ -304,7 +304,7 @@ uint32_t color_brightness(uint32_t color, uint8_t brightness) {
304
304
}
305
305
306
306
void set_rgb_status_brightness (uint8_t level ){
307
- #if defined(MICROPY_HW_NEOPIXEL ) || (defined(MICROPY_HW_APA102_MOSI ) && defined(MICROPY_HW_APA102_SCK ))
307
+ #if defined(MICROPY_HW_NEOPIXEL ) || (defined(MICROPY_HW_APA102_MOSI ) && defined(MICROPY_HW_APA102_SCK )) || (defined( CP_RGB_STATUS_LED ))
308
308
rgb_status_brightness = level ;
309
309
uint32_t current_color = current_status_color ;
310
310
// Temporarily change the current color global to force the new_status_color call to update the
You can’t perform that action at this time.
0 commit comments