This commit is contained in:
2025-01-05 03:03:07 -05:00
parent 0ada463cd8
commit afd20fc56a
3 changed files with 3 additions and 3 deletions

View File

View File

@@ -1 +1 @@
5dc5123a4b9d95f54492de90984cb78d7f2195d9
0ada463cd84b020fd2ee7f3f8cb00f4158344ba4

View File

@@ -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));