ESP-IDF Robot Controls

This commit is contained in:
2024-12-25 12:29:24 -05:00
parent 84b8774293
commit 308604741e
4 changed files with 161 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ TIMER RESOLUTION MAX VALUE HALF-DUTY
#define ADC_UNIT_STR(unit) _ADC_UNIT_STR(unit)
static TaskHandle_t s_task_handle;
//static adc_channel_t channel[2] = {ADC_CHANNEL_2, ADC_CHANNEL_3};
static adc_channel_t channel[2] = {ADC_CHANNEL_1, ADC_CHANNEL_3};
static adc_channel_t channel[2] = {ADC_CHANNEL_0, ADC_CHANNEL_1};
static int adc_raw[2][10];
static int voltage[2][10];