Skip to content

Commit

Permalink
更新屏幕
Browse files Browse the repository at this point in the history
  • Loading branch information
BoYs-J authored Nov 6, 2024
1 parent 8ba7c54 commit 8df0cd0
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions application/main/src/driver/ssd1306/ssd1306_oled.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,14 +275,18 @@ static void ssd1306_event_handler(enum user_event event, void* arg)
case USER_EVT_STAGE:
switch (param) {
case KBD_STATE_POST_INIT: // 初始化
ssd1306_twi_init();
ssd1306_oled_init();
//ssd1306_clr();
ssd1306_inited = true;
if (!ssd1306_inited) {
ssd1306_twi_init();
ssd1306_oled_init();
//ssd1306_clr();
ssd1306_inited = true;
}
break;
case KBD_STATE_INITED: // 显示Buff
update_status_bar();
ssd1306_show_all();
if (ssd1306_inited) {
update_status_bar();
ssd1306_show_all();
}
break;
case KBD_STATE_SLEEP: // 睡眠
if (ssd1306_inited) {
Expand Down

0 comments on commit 8df0cd0

Please sign in to comment.