ESP-IDF Robot ESP NOW

This commit is contained in:
2024-12-23 20:51:32 -05:00
parent ef071a0526
commit b864626f0f

View File

@@ -56,11 +56,13 @@ static QueueHandle_t gpio_evt_queue = NULL;
static uint8_t s_led_state = 0;
uint8_t broadcastAddress[] = {};
/* ESP NOW*/
typedef struct struct_message {
char node[32];
uint8_t motor_a_pwm;
} struct_message;
struct_message controlData;
esp_now_peer_info_t peerInfo;
#ifdef CONFIG_BLINK_LED_STRIP