Parcourir la source

Backlight (#13) + blue LED during communication

Oleg Logvinov il y a 11 mois
Parent
commit
ae7224f050
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  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);
         }
     }