Skip to content

Commit

Permalink
btn: add bluetooth animation in ble mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kienvo committed Jun 12, 2024
1 parent aa26cb3 commit e4379fd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,14 @@ void handle_mode_transition()

// Take control of the current fb to display
// the Bluetooth animation
fb_t *cur = fblist_currentfb();
cur->modes = FIXED;
cur->scroll = 0;
memset(cur->buf, 0, cur->width * sizeof(uint16_t));

while (mode == DOWNLOAD) {
/* Animation and Bluetooth will be placed here */
frame_next(&bluetooth, cur->buf, 10, 0);
DelayMs(200);
}
// If not being flashed, pressing KEY1 again will
// make the badge goes off:
Expand Down

0 comments on commit e4379fd

Please sign in to comment.