mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 14:20:51 +00:00
ESP32-C3 RC
This commit is contained in:
@@ -740,8 +740,8 @@ static void motors_task (void *pvParameter) {}
|
||||
EXP32-C3 Chip built-in temprature sensor
|
||||
*/
|
||||
static void chip_sensor_init () {
|
||||
temperature_sensor_handle_t temp_sensor = NULL;
|
||||
temperature_sensor_config_t temp_sensor_config = TEMPERATURE_SENSOR_CONFIG_DEFAULT(10, 50);
|
||||
temp_sensor = NULL;
|
||||
temp_sensor_config = TEMPERATURE_SENSOR_CONFIG_DEFAULT(10, 50);
|
||||
ESP_ERROR_CHECK(temperature_sensor_install(&temp_sensor_config, &temp_sensor));
|
||||
|
||||
ESP_LOGI(TAG, "Enable temperature sensor");
|
||||
|
Reference in New Issue
Block a user