Skip to content

Commit

Permalink
animation: add Bluetooth animation in download mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kienvo committed Jul 28, 2024
1 parent 2f98dba commit bfa72a1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,12 @@ static uint16_t common_tasks(tmosTaskID task_id, uint16_t events)
return events ^ ANI_FLASH;
}

if (events & BLE_NEXT_STEP) {
ani_xbm_next_frame(&bluetooth, fb, 10, 0);

return events ^ BLE_NEXT_STEP;
}

return 0;
}

Expand Down Expand Up @@ -220,6 +226,9 @@ void ble_start()
tmos_stop_task(common_taskid, ANI_NEXT_STEP);
tmos_stop_task(common_taskid, ANI_MARQUE);
tmos_stop_task(common_taskid, ANI_FLASH);
memset(fb, 0, sizeof(fb));

tmos_start_reload_task(common_taskid, BLE_NEXT_STEP, 500000 / 625);
}

void handle_mode_transition()
Expand Down

0 comments on commit bfa72a1

Please sign in to comment.