mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-29 16:30:42 +00:00
ESP-IDF Robot Controls
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 @@
|
|||||||
d7d0ce25318ffa944b5e4fa36050b000a0cd67f1
|
bdcce55668b05614ef89232fa078c48ab1183260
|
||||||
|
@@ -810,6 +810,9 @@ void app_main(void)
|
|||||||
|
|
||||||
|
|
||||||
// ADC
|
// ADC
|
||||||
|
// Display GPIOs used
|
||||||
|
ESP_LOGI(TAG, "ADC1_CH0: %d", ADC1_CHANNEL_0);
|
||||||
|
ESP_LOGI(TAG, "ADC1_CH1: %d", ADC1_CHANNEL_1);
|
||||||
adc_ret = adc_continuous_read(handle, result, READ_LEN, &ret_num, 0);
|
adc_ret = adc_continuous_read(handle, result, READ_LEN, &ret_num, 0);
|
||||||
if (ret == ESP_OK) {
|
if (ret == ESP_OK) {
|
||||||
ESP_LOGI("TASK", "ret is %x, ret_num is %"PRIu32" bytes", ret, ret_num);
|
ESP_LOGI("TASK", "ret is %x, ret_num is %"PRIu32" bytes", ret, ret_num);
|
||||||
@@ -820,8 +823,6 @@ void app_main(void)
|
|||||||
/* Check the channel number validation, the data is invalid if the channel num exceed the maximum channel */
|
/* Check the channel number validation, the data is invalid if the channel num exceed the maximum channel */
|
||||||
if (chan_num < SOC_ADC_CHANNEL_NUM(ADC_UNIT)) {
|
if (chan_num < SOC_ADC_CHANNEL_NUM(ADC_UNIT)) {
|
||||||
ESP_LOGI(TAG, "Unit: %s, Channel: %"PRIu32", Value: %"PRIx32, unit, chan_num, data);
|
ESP_LOGI(TAG, "Unit: %s, Channel: %"PRIu32", Value: %"PRIx32, unit, chan_num, data);
|
||||||
ESP_LOGI(TAG, "ADC1_CH0: %d", ADC1_CHANNEL_0);
|
|
||||||
ESP_LOGI(TAG, "ADC1_CH1: %d", ADC1_CHANNEL_1);
|
|
||||||
} else {
|
} else {
|
||||||
ESP_LOGW(TAG, "Invalid data [%s_%"PRIu32"_%"PRIx32"]", unit, chan_num, data);
|
ESP_LOGW(TAG, "Invalid data [%s_%"PRIu32"_%"PRIx32"]", unit, chan_num, data);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user