mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-12 03:23:27 +00:00
ESP-IDF Robot Controls
This commit is contained in:
@@ -83,7 +83,7 @@ TIMER RESOLUTION MAX VALUE HALF-DUTY
|
||||
#define NAV_BTN (8) // 8 GPIO joystick button
|
||||
#define _ADC_UNIT_STR(unit) #unit
|
||||
#define ADC_UNIT_STR(unit) _ADC_UNIT_STR(unit)
|
||||
uint x_avg = 0, y_avg = 0;
|
||||
uint8_t x_avg = 0, y_avg = 0;
|
||||
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_0, ADC_CHANNEL_1};
|
||||
|
Reference in New Issue
Block a user