Skip to content

Commit 9377ab3

Browse files
committed
chore(core): align LED colors with firmware
1 parent 8239b1c commit 9377ab3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

core/embed/io/rgb_led/inc/io/rgb_led.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ bool rgb_led_get_enabled(void);
4343
// color: 24-bit RGB color, 0x00RRGGBB
4444
void rgb_led_set_color(uint32_t color);
4545

46-
#define RGBLED_GREEN 0x00FF00
47-
#define RGBLED_RED 0xFF0000
48-
#define RGBLED_BLUE 0x0000FF
49-
#define RGBLED_YELLOW 0xFFFF00
46+
#define RGBLED_GREEN 0x040D04
47+
#define RGBLED_RED 0x640603
48+
#define RGBLED_BLUE 0x050532
49+
#define RGBLED_YELLOW 0x161000
5050

5151
#endif // TREZORHAL_RGB_LED_H

core/embed/projects/bootloader/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,23 +237,23 @@ static secbool boot_sequence(void) {
237237

238238
while (pm_turn_on() != PM_OK) {
239239
#ifdef USE_RGB_LED
240-
rgb_led_set_color(0x400000);
240+
rgb_led_set_color(RGBLED_RED);
241241
#endif
242242
systick_delay_ms(400);
243243
#ifdef USE_RGB_LED
244244
rgb_led_set_color(0);
245245
#endif
246246
systick_delay_ms(400);
247247
#ifdef USE_RGB_LED
248-
rgb_led_set_color(0x400000);
248+
rgb_led_set_color(RGBLED_RED);
249249
#endif
250250
systick_delay_ms(400);
251251
#ifdef USE_RGB_LED
252252
rgb_led_set_color(0);
253253
#endif
254254
systick_delay_ms(400);
255255
#ifdef USE_RGB_LED
256-
rgb_led_set_color(0x400000);
256+
rgb_led_set_color(RGBLED_RED);
257257
#endif
258258
systick_delay_ms(400);
259259
#ifdef USE_RGB_LED

0 commit comments

Comments
 (0)