瀏覽代碼

Backlight (#13) + blue LED during communication

Oleg Logvinov 1 年之前
父節點
當前提交
ae7224f050
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      pc_monitor.c

+ 5 - 0
pc_monitor.c

@@ -41,6 +41,11 @@ static uint16_t bt_serial_callback(SerialServiceEvent event, void* ctx) {
             memcpy(&app->data, event.data.buffer, sizeof(DataStruct));
             app->bt_state = BtStateRecieving;
             app->last_packet = furi_hal_rtc_get_timestamp();
+
+            // Elegant solution, the backlight is only on when there is continuous communication
+            notification_message(app->notification, &sequence_display_backlight_on);
+
+            notification_message(app->notification, &sequence_blink_blue_10);
         }
     }