ESP-IDF Robot Controls

This commit is contained in:
2024-12-25 11:56:34 -05:00
parent 0dd61067c7
commit 44ad8b0c3e
3 changed files with 3 additions and 818 deletions

View File

@@ -83,7 +83,8 @@ TIMER RESOLUTION MAX VALUE HALF-DUTY
#define _ADC_UNIT_STR(unit) #unit
#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_2, ADC_CHANNEL_3};
static adc_channel_t channel[2] = {ADC_CHANNEL_0, ADC_CHANNEL_4};
static int adc_raw[2][10];
static int voltage[2][10];