mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-07 22:36:12 +00:00
RC
This commit is contained in:
0
ESP-IDF_Robot_RC/build/.ninja_lock
Normal file
0
ESP-IDF_Robot_RC/build/.ninja_lock
Normal file
@@ -1 +1 @@
|
||||
5dc5123a4b9d95f54492de90984cb78d7f2195d9
|
||||
0ada463cd84b020fd2ee7f3f8cb00f4158344ba4
|
||||
|
@@ -16,7 +16,7 @@ static esp_err_t joystick_adc_init() {
|
||||
};
|
||||
ESP_ERROR_CHECK(adc_oneshot_new_unit(&adc_init_config_xy, &adc_xy_handle));
|
||||
|
||||
adc_oneshot_chan_cfg_t config_x = {
|
||||
/*adc_oneshot_chan_cfg_t config_x = {
|
||||
.bitwidth = SOC_ADC_DIGI_MAX_BITWIDTH,
|
||||
.atten = ADC_ATTEN_DB_11,
|
||||
|
||||
@@ -25,7 +25,7 @@ static esp_err_t joystick_adc_init() {
|
||||
.bitwidth = SOC_ADC_DIGI_MAX_BITWIDTH,
|
||||
.atten = ADC_ATTEN_DB_11,
|
||||
|
||||
};
|
||||
};*/
|
||||
ESP_ERROR_CHECK(adc_oneshot_config_channel(adc_xy_handle, ADC1_CHANNEL_0, &config_x));
|
||||
ESP_ERROR_CHECK(adc_oneshot_config_channel(adc_xy_handle, ADC1_CHANNEL_1, &config_y));
|
||||
|
||||
|
Reference in New Issue
Block a user