update adafruit boards for 2.0 (#5718)

This commit is contained in:
Ha Thach
2021-10-01 20:14:50 +07:00
committed by GitHub
parent 1688b7c179
commit 6de7f16f28
13 changed files with 107 additions and 59 deletions

View File

@ -4,12 +4,11 @@
#include <stdint.h>
#define USB_VID 0x239A
#define USB_PID 0x80DF
#define USB_MANUFACTURER "Adafruit"
#define USB_PRODUCT "Metro ESP32-S2"
#define USB_SERIAL ""
#define USB_VID 0x239A
#define USB_PID 0x80DF
#define USB_MANUFACTURER "Adafruit"
#define USB_PRODUCT "Metro ESP32-S2"
#define USB_SERIAL "" // Empty string for MAC adddress
#define EXTERNAL_NUM_INTERRUPTS 46
#define NUM_DIGITAL_PINS 48
@ -19,8 +18,12 @@
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
#define digitalPinHasPWM(p) (p < 46)
static const uint8_t PIN_NEOPIXEL = 45;
static const uint8_t LED_BUILTIN = 42;
#define LED_BUILTIN 42
#define PIN_NEOPIXEL 45
#define NEOPIXEL_NUM 1
#define PIN_BUTTON1 0 // BOOT0 switch
static const uint8_t TX = 5;
static const uint8_t RX = 6;