ESP-NOW Transmitter

This commit is contained in:
2025-06-17 23:44:47 -04:00
parent 9f48c93ebf
commit 00bd20ae41

View File

@@ -11,7 +11,7 @@
#include "freertos/timers.h" #include "freertos/timers.h"
#include "esp_event.h"*/ #include "esp_event.h"*/
#include "config.h" //#include "config.h"
//static int x, y; // Joystick x and y positions //static int x, y; // Joystick x and y positions
//static adc_oneshot_unit_handle_t adc_xy_handle; //static adc_oneshot_unit_handle_t adc_xy_handle;
@@ -27,7 +27,7 @@ typedef struct {
uint8_t motor4_rpm_pcm; uint8_t motor4_rpm_pcm;
} __attribute__((packed)) sensors_data_t; } __attribute__((packed)) sensors_data_t;
int x, y; // Joystick x and y positions static int x, y; // Joystick x and y positions
adc_oneshot_unit_handle_t adc_xy_handle; adc_oneshot_unit_handle_t adc_xy_handle;
sensors_data_t buffer; sensors_data_t buffer;