This commit is contained in:
2025-01-04 22:14:14 -05:00
parent 8c297626bc
commit f647d7f16e
13 changed files with 617 additions and 622 deletions

View File

@@ -27,10 +27,10 @@ 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)", "( %d, %d)", x, y);
ESP_LOGI("(x,y)", "( %d, %d )", x, y);
}
static void joystick_task(void *arg) {