Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 12f1aa2

Browse files
authored
Merge pull request adafruit#757 from tannewt/status_pixel_fix
Fix the status neopixel flashing.
2 parents e311d17 + 5f9b3f2 commit 12f1aa2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

main.c

-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ static char heap[PORT_HEAP_SIZE];
7575

7676
void reset_mp(void) {
7777
reset_status_led();
78-
new_status_color(0x8f008f);
7978
autoreload_stop();
8079

8180
// Sync the file systems in case any used RAM from the GC to cache. As soon

supervisor/shared/rgb_led_status.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void rgb_led_status_init() {
9797
#if defined(MICROPY_HW_NEOPIXEL) || (defined(MICROPY_HW_APA102_MOSI) && defined(MICROPY_HW_APA102_SCK))
9898
// Force a write of the current status color.
9999
uint32_t rgb = current_status_color;
100-
current_status_color = 0;
100+
current_status_color = 0x1000000; // Not a valid color
101101
new_status_color(rgb);
102102
#endif
103103
}
@@ -118,7 +118,7 @@ void new_status_color(uint32_t rgb) {
118118
return;
119119
}
120120
uint32_t rgb_adjusted = color_brightness(rgb, rgb_status_brightness);
121-
current_status_color = rgb_adjusted;
121+
current_status_color = rgb;
122122
#endif
123123

124124
#ifdef MICROPY_HW_NEOPIXEL

0 commit comments

Comments
 (0)