mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-09-03 18:22:37 +00:00
ESP-IDF Robot ESP NOW
This commit is contained in:
@@ -56,11 +56,13 @@ static QueueHandle_t gpio_evt_queue = NULL;
|
|||||||
static uint8_t s_led_state = 0;
|
static uint8_t s_led_state = 0;
|
||||||
uint8_t broadcastAddress[] = {};
|
uint8_t broadcastAddress[] = {};
|
||||||
|
|
||||||
|
/* ESP NOW*/
|
||||||
typedef struct struct_message {
|
typedef struct struct_message {
|
||||||
char node[32];
|
char node[32];
|
||||||
uint8_t motor_a_pwm;
|
uint8_t motor_a_pwm;
|
||||||
} struct_message;
|
} struct_message;
|
||||||
struct_message controlData;
|
struct_message controlData;
|
||||||
|
esp_now_peer_info_t peerInfo;
|
||||||
|
|
||||||
#ifdef CONFIG_BLINK_LED_STRIP
|
#ifdef CONFIG_BLINK_LED_STRIP
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user