power screen star code

This commit is contained in:
2024-12-28 17:44:54 -06:00
parent a4cf115bd6
commit a6f435216a
5 changed files with 26 additions and 7 deletions
+1 -3
View File
@@ -3,7 +3,7 @@
static const char* TAG = "POWER";
static void bat_monitor_task(void* arg) {
void bat_monitor_task(void* arg) {
while (1) {
char str_buf[33] = {0};
uint16_t voltage = lipo.voltage();
@@ -46,8 +46,6 @@ void init_power_board() {
auto voltage = lipo.voltage();
ESP_LOGI(TAG, "Battery Voltage: %d", voltage);
// xTaskCreate(bat_monitor_task, "bat_monitor", 4096, NULL, 5, NULL);
}
+2
View File
@@ -4,6 +4,8 @@
#include "SparkFunBQ27441/SparkFunBQ27441.h"
#include <esp_log.h>
void bat_monitor_task(void* arg);
/// Initializes the battery gas guage for getting battery stats.
void init_power_board();
uint16_t get_bat_voltage();