From 6c98d9f962c215de29fe85d9ffab746de80c8662 Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Tue, 17 Jun 2025 23:49:04 -0400 Subject: [PATCH] ESP-NOW Transmitter --- ESP32-IDF_ESPNOW-Transmitter/build/.ninja_lock | 0 ESP32-IDF_ESPNOW-Transmitter/main/joystick.h | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 ESP32-IDF_ESPNOW-Transmitter/build/.ninja_lock diff --git a/ESP32-IDF_ESPNOW-Transmitter/build/.ninja_lock b/ESP32-IDF_ESPNOW-Transmitter/build/.ninja_lock new file mode 100644 index 000000000..e69de29bb diff --git a/ESP32-IDF_ESPNOW-Transmitter/main/joystick.h b/ESP32-IDF_ESPNOW-Transmitter/main/joystick.h index bcc67a498..5fccd5dab 100644 --- a/ESP32-IDF_ESPNOW-Transmitter/main/joystick.h +++ b/ESP32-IDF_ESPNOW-Transmitter/main/joystick.h @@ -27,9 +27,10 @@ typedef struct { uint8_t motor4_rpm_pcm; } __attribute__((packed)) sensors_data_t; -//static int x, y; // Joystick x and y positions +static int x, y; // Joystick x and y positions extern adc_oneshot_unit_handle_t adc_xy_handle; extern sensors_data_t buffer; +extern uint8_t receiver_mac[6]; int convert_axis_to_pwm(int axis_value); void get_joystick_xy_axis(int *x_axis, int *y_axis);