mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-10-01 19:15:50 +00:00
ESP32-C3 RC
This commit is contained in:
0
ESP-IDF_Robot/build/.ninja_lock
Normal file
0
ESP-IDF_Robot/build/.ninja_lock
Normal file
@@ -1 +1 @@
|
|||||||
ref: refs/heads/main
|
c9763f62dd00c887a1a8fafe388db868a7e44069
|
||||||
|
@@ -18,7 +18,7 @@ set(HEAD_HASH)
|
|||||||
file(READ "/home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/CMakeFiles/git-data/HEAD" HEAD_CONTENTS LIMIT 1024)
|
file(READ "/home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/CMakeFiles/git-data/HEAD" HEAD_CONTENTS LIMIT 1024)
|
||||||
|
|
||||||
string(STRIP "${HEAD_CONTENTS}" HEAD_CONTENTS)
|
string(STRIP "${HEAD_CONTENTS}" HEAD_CONTENTS)
|
||||||
set(GIT_DIR "/home/abobkov/MyProjects/ESP-Nodes/.git")
|
set(GIT_DIR "/home/abobkov/esp/esp-idf/.git")
|
||||||
# handle git-worktree
|
# handle git-worktree
|
||||||
if(EXISTS "${GIT_DIR}/commondir")
|
if(EXISTS "${GIT_DIR}/commondir")
|
||||||
file(READ "${GIT_DIR}/commondir" GIT_DIR_NEW LIMIT 1024)
|
file(READ "${GIT_DIR}/commondir" GIT_DIR_NEW LIMIT 1024)
|
||||||
|
@@ -1 +1 @@
|
|||||||
bf5d8de329b53a3e1bba055557e6726edeb544b7
|
c9763f62dd00c887a1a8fafe388db868a7e44069
|
||||||
|
@@ -131,6 +131,7 @@ static adc_channel_t channel[2] = {ADC_CHANNEL_0, ADC_CHANNEL_1};
|
|||||||
|
|
||||||
static temperature_sensor_handle_t temp_sensor;
|
static temperature_sensor_handle_t temp_sensor;
|
||||||
static temperature_sensor_config_t temp_sensor_config;
|
static temperature_sensor_config_t temp_sensor_config;
|
||||||
|
static float tsens_value;
|
||||||
|
|
||||||
static QueueHandle_t gpio_evt_queue = NULL;
|
static QueueHandle_t gpio_evt_queue = NULL;
|
||||||
static uint8_t s_led_state = 1;
|
static uint8_t s_led_state = 1;
|
||||||
@@ -768,7 +769,6 @@ static void chip_sensor_init () {
|
|||||||
}
|
}
|
||||||
static void display_chip_temperature () {
|
static void display_chip_temperature () {
|
||||||
ESP_LOGI("ESP32-C3", "Reading sensor temperature");
|
ESP_LOGI("ESP32-C3", "Reading sensor temperature");
|
||||||
float tsens_value;
|
|
||||||
ESP_ERROR_CHECK(temperature_sensor_get_celsius(temp_sensor, &tsens_value));
|
ESP_ERROR_CHECK(temperature_sensor_get_celsius(temp_sensor, &tsens_value));
|
||||||
ESP_LOGW("ESP32-C3", "Temperature value %.02f ℃", tsens_value);
|
ESP_LOGW("ESP32-C3", "Temperature value %.02f ℃", tsens_value);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user