diff --git a/ESP-IDF_Robot_RC/main/espnow_example_main.c b/ESP-IDF_Robot_RC/main/espnow_example_main.c index 27b5c7b75..42df1b490 100755 --- a/ESP-IDF_Robot_RC/main/espnow_example_main.c +++ b/ESP-IDF_Robot_RC/main/espnow_example_main.c @@ -30,6 +30,13 @@ #include "esp_crc.h" #include "espnow_example.h" +#include "rc.h" + +#define PROJ_X (1) // ADC1_CH1; 0 GPIO joystick, x-axis +#define PROJ_Y (0) // ADC1_CH0; 1 GPIO joystick, y-axis +#define NAV_BTN (8) // 8 GPIO joystick button + + #define ESPNOW_MAXDELAY 512 static const char *TAG = "espnow_example";