mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-16 18:34:18 +00:00
ESP32-C3 RC
This commit is contained in:
@@ -110,7 +110,7 @@ static TaskHandle_t s_task_handle;
|
|||||||
static TaskHandle_t m_task_handle; // Task for controlling motors PWMs
|
static TaskHandle_t m_task_handle; // Task for controlling motors PWMs
|
||||||
//static adc_channel_t channel[2] = {ADC_CHANNEL_2, ADC_CHANNEL_3};
|
//static adc_channel_t channel[2] = {ADC_CHANNEL_2, ADC_CHANNEL_3};
|
||||||
static adc_channel_t channel[2] = {ADC_CHANNEL_0, ADC_CHANNEL_1};
|
static adc_channel_t channel[2] = {ADC_CHANNEL_0, ADC_CHANNEL_1};
|
||||||
|
static sensors_data_t *buf;
|
||||||
|
|
||||||
#define ESP_INTR_FLAG_DEFAULT 0
|
#define ESP_INTR_FLAG_DEFAULT 0
|
||||||
|
|
||||||
@@ -797,6 +797,14 @@ static void display_chip_temperature () {
|
|||||||
ESP_LOGW("ESP32-C3", "Temperature value %.02f ℃", tsens_value);
|
ESP_LOGW("ESP32-C3", "Temperature value %.02f ℃", tsens_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void onDataReceived (uint8_t *mac_addr, uint8_t *data, uint8_t data_len) {
|
||||||
|
|
||||||
|
//memcpy(buf, data, data_len);
|
||||||
|
buf = (sensors_data_t*)data;
|
||||||
|
ESP_LOGW(TAG, "Data was received");
|
||||||
|
ESP_LOGI(TAG, "x-axis: %i", buf->x_axis);
|
||||||
|
}
|
||||||
|
|
||||||
void app_main(void)
|
void app_main(void)
|
||||||
{
|
{
|
||||||
// Initialize internal temperature sensor
|
// Initialize internal temperature sensor
|
||||||
|
Reference in New Issue
Block a user