This commit is contained in:
2025-01-04 22:06:18 -05:00
parent 60c5fa9e57
commit baf5356805
3 changed files with 3 additions and 3 deletions

View File

View File

@@ -1 +1 @@
a227350a839a9c2448f0be55d5141ccc629bfc5c
60c5fa9e57c5b350a6d0992a0651edb91d808af2

View File

@@ -27,8 +27,8 @@ static esp_err_t joystick_adc_init() {
static void joystick_get_raw_xy() {
ESP_ERROR_CHECK(adc_oneshot_read(adc1_x_handle, ADC1_CHANNEL_0, x));
ESP_ERROR_CHECK(adc_oneshot_read(adc1_y_handle, ADC1_CHANNEL_1, y));
ESP_ERROR_CHECK(adc_oneshot_read(adc1_x_handle, ADC1_CHANNEL_0, &x));
ESP_ERROR_CHECK(adc_oneshot_read(adc1_y_handle, ADC1_CHANNEL_1, &y));
ESP_LOGI("(x,y)", "( %i, %i)", x, y);
}