mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 12:30:52 +00:00
RC
This commit is contained in:
@@ -7,6 +7,8 @@
|
|||||||
static unsigned uint8_t x = 0, y = 0;
|
static unsigned uint8_t x = 0, y = 0;
|
||||||
adc_oneshot_unit_handle_t adc1_x_handle;
|
adc_oneshot_unit_handle_t adc1_x_handle;
|
||||||
|
|
||||||
|
static esp_err_t joystick_adc_init() {}
|
||||||
|
|
||||||
static void joystick_get_raw_xy() {
|
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_x_handle, ADC1_CHANNEL_0, &x));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user