mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-11-10 11:12:17 +00:00
RC
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user