This commit is contained in:
2025-01-04 21:24:11 -05:00
parent c5fdea1ad6
commit 57ae40ef2f
3 changed files with 2 additions and 2 deletions

View File

View File

@@ -1 +1 @@
b5189db5829b7258aba44a44e72710173aa4e84e
c5fdea1ad6131984922363f6869b7dce3fa439ec

View File

@@ -8,7 +8,7 @@ static unsigned uint8_t x, y;
adc_oneshot_unit_handle_t adc1_x_handle;
static void joystick_get_raw_xy() {
ESP_ERROR_CHECK(adc_oneshot_read(adc1_x_handle, ADC1_CHAN0, &x));
ESP_ERROR_CHECK(adc_oneshot_read(adc1_x_handle, ADC1_CHANNEL_0, &x));
}
#endif