Fix build: add Adafruit_TinyUSB.h include in main.cpp, add build_unflags to prevent ARDUINO_USB_MODE redefinition warning
This commit is contained in:
@@ -10,6 +10,9 @@ lib_deps =
|
|||||||
adafruit/Adafruit TinyUSB Library@^3.1.0
|
adafruit/Adafruit TinyUSB Library@^3.1.0
|
||||||
fastled/FastLED@^3.9.0
|
fastled/FastLED@^3.9.0
|
||||||
|
|
||||||
|
build_unflags =
|
||||||
|
-DARDUINO_USB_MODE=1
|
||||||
|
|
||||||
build_flags =
|
build_flags =
|
||||||
-DARDUINO_USB_MODE=0
|
-DARDUINO_USB_MODE=0
|
||||||
-DARDUINO_USB_CDC_ON_BOOT=1
|
-DARDUINO_USB_CDC_ON_BOOT=1
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
#include <driver/gpio.h>
|
#include <driver/gpio.h>
|
||||||
#include <esp_rom_sys.h>
|
#include <esp_rom_sys.h>
|
||||||
#include "midi_transport.h"
|
#include "midi_transport.h"
|
||||||
|
#include "Adafruit_TinyUSB.h"
|
||||||
#include "pixel_stomp_mux.h"
|
#include "pixel_stomp_mux.h"
|
||||||
#include "led_stub.h"
|
#include "led_stub.h"
|
||||||
#include "switch_stub.h"
|
#include "switch_stub.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user