Skip to content

Commit

Permalink
update bootloader icon
Browse files Browse the repository at this point in the history
  • Loading branch information
solosky committed Mar 26, 2024
1 parent 151953c commit 46f29a3
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 38 deletions.
50 changes: 18 additions & 32 deletions fw/bootloader/src/bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,36 +202,22 @@ const uint8_t ascii_1608[95][16]={


const uint8_t dfu_logo[] = {
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X80,
0X80,0XC0,0XC0,0XE0,0XE0,0XF0,0XF0,0XF0,0X78,0X78,0X78,0X78,0X78,0X78,0X38,0X38,
0X38,0X38,0X78,0X78,0X78,0X78,0X78,0X78,0XF0,0XF0,0XF0,0XE0,0XE0,0XC0,0XC0,0X80,
0X80,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X80,0XC0,0XE0,0XF0,0XF8,0XFC,0X3E,0X1F,0X0F,
0X07,0X07,0X03,0X03,0X01,0X01,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X01,0X01,0X03,0X03,0X07,0X07,
0X0F,0X1F,0X3E,0X7C,0XF8,0XF0,0XE0,0XC0,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0XE0,0XF8,0XFE,0XFF,0X3F,0X0F,0X03,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0XFF,0XFF,0XFF,
0XFF,0XFF,0XFF,0XFF,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X01,0X03,0X0F,0X3F,0XFF,0XFE,0XF8,0XC0,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0XFF,0XFF,0XFF,0X3F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X18,0X38,0X78,0XF8,0XFF,0XFF,0XFF,0XFF,
0XFF,0XFF,0XFF,0XFF,0XF8,0X78,0X38,0X08,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X01,0X3F,0XFF,0XFF,0XFF,0X00,0X00,0X00,
0X00,0X00,0X00,0XFF,0XFF,0XFF,0XFC,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0XF0,0XF0,0XF0,0XF0,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X01,0X07,0X0F,0X1F,
0X1F,0X0F,0X07,0X01,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XF0,0XF0,0XF0,0XF0,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X80,0XFC,0XFF,0XFF,0XFF,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X07,0X1F,0X7F,0XFF,0XFC,0XF0,0XC0,0X80,0X00,0X00,0X00,0X00,
0X0F,0X1F,0X3F,0X3F,0X3C,0X78,0X78,0X78,0X78,0X78,0X78,0X78,0X78,0X78,0X78,0X78,
0X78,0X78,0X78,0X78,0X78,0X78,0X78,0X78,0X78,0X78,0X78,0X3C,0X3F,0X3F,0X1F,0X0F,
0X00,0X00,0X00,0X00,0X80,0XC0,0XF0,0XFC,0XFF,0X7F,0X1F,0X03,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X01,0X03,0X07,0X0F,0X1F,0X3F,0X7C,0XF8,0XF8,
0XF0,0XE0,0XC0,0XC0,0X80,0X80,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X80,0X80,0XC0,0XC0,0XE0,0XF0,
0XF8,0XF8,0X7C,0X3F,0X1F,0X0F,0X07,0X03,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X01,0X03,0X03,0X07,0X07,0X07,0X0F,0X0F,0X1F,0X1E,0X1E,0X1E,0X1E,0X1E,0X1C,0X1C,
0X1C,0X1C,0X1E,0X1E,0X1E,0X1E,0X1E,0X1F,0X0F,0X0F,0X07,0X07,0X07,0X03,0X03,0X01,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X80,0XC0,0XC0,0XE0,0XF0,0X70,0X38,
0X38,0X38,0X1C,0X1C,0X1C,0X1C,0X1C,0X1C,0X1C,0X1C,0X1C,0X1C,0X1C,0X1C,0X38,0X38,
0X38,0X70,0XE0,0XE0,0XC0,0XC0,0X80,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X80,0XE0,0XF0,0X7C,0X3E,0X0F,0X07,0X03,0X01,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X80,0XC0,0XE0,0XF0,0XF0,0XF0,0XF0,0XC0,0XC0,0X80,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X01,0X03,0X07,0X0F,0X3E,0XFC,0XF0,0XC0,0X00,0X00,0X00,0X00,
0X00,0X00,0XFC,0XFF,0XFF,0X03,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X30,0X38,
0X3C,0X1E,0X0F,0X07,0X03,0X01,0XFF,0XFF,0XFF,0X00,0X03,0X03,0X07,0X0F,0X3C,0X3C,
0X38,0X20,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X07,0XFF,0XFF,0XF8,0X00,0X00,
0X00,0X00,0X3F,0XFF,0XFF,0XC0,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0XFF,0XFF,0XFF,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0XE0,0XFF,0XFF,0X1F,0X00,0X00,
0X00,0X00,0X00,0X01,0X03,0X0F,0X3E,0X7C,0XF0,0XE0,0XC0,0X80,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X07,0X0F,0X0F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X80,0X80,0XC0,0XE0,0XF8,0X7C,0X1F,0X0F,0X03,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X01,0X03,0X03,0X07,0X07,0X0E,0X0E,
0X1C,0X1C,0X1C,0X38,0X38,0X38,0X38,0X38,0X38,0X38,0X38,0X38,0X38,0X1C,0X1C,0X1C,
0X0E,0X0E,0X07,0X07,0X03,0X01,0X01,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
};
2 changes: 1 addition & 1 deletion fw/bootloader/src/lcd_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ void show_str_0608(uint8_t x, uint8_t y, uint8_t *data, uint8_t len) {

void show_str_1608(uint8_t x, uint8_t y, uint8_t *data, uint8_t len) {
for (uint8_t i = 0; i < len; i++) {
lcd_show_char(x + i * 8, y, *(data + i));
lcd_show_char(x + i * 6, y, *(data + i));
}
}

Expand Down
10 changes: 5 additions & 5 deletions fw/bootloader/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@ static void dfu_observer(nrf_dfu_evt_type_t evt_type) {
case NRF_DFU_EVT_DFU_INITIALIZED:
lcd_init();
lcd_clear();
lcd_show_pic(32, 0, 64, 64, dfu_logo);
//lcd_draw_str_1608(5, 50, "Firmware Update Mode");
lcd_show_pic(40, 4, 48, 48, dfu_logo);
lcd_draw_str_1608(20, 50, "Firmware Update");
break;
case NRF_DFU_EVT_TRANSPORT_ACTIVATED:
break;
case NRF_DFU_EVT_DFU_STARTED:
//lcd_clear();
//lcd_show_pic(40, 2, 48, 48, dfu_logo);
//lcd_draw_str_1608(10, 50, "Updating Device..");
lcd_clear();
lcd_show_pic(40, 4, 48, 48, dfu_logo);
lcd_draw_str_1608(10, 50, "Updating Firmware..");
break;
case NRF_DFU_EVT_OBJECT_RECEIVED: {
} break;
Expand Down

0 comments on commit 46f29a3

Please sign in to comment.