mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-19 10:29:04 +00:00
ESP-NOW-Transmitter
This commit is contained in:
@@ -48,8 +48,8 @@ static void joystick_show_raw_xy() {
|
||||
}
|
||||
|
||||
static void get_joystick_xy(int* x_axis, int* y_axis) {
|
||||
ESP_ERROR_CHECK(adc_oneshot_read(adc_xy_handle, ADC1_CHANNEL_0, &x_axis));
|
||||
ESP_ERROR_CHECK(adc_oneshot_read(adc_xy_handle, ADC1_CHANNEL_1, &y_axis));
|
||||
ESP_ERROR_CHECK(adc_oneshot_read(adc_xy_handle, ADC1_CHANNEL_0, &x));
|
||||
ESP_ERROR_CHECK(adc_oneshot_read(adc_xy_handle, ADC1_CHANNEL_1, &y));
|
||||
}
|
||||
|
||||
static void joystick_task(void *arg) {
|
||||
|
Reference in New Issue
Block a user