power screen star code
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user