-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add board support for Seeed XIAO ESP32C6 (#9330)
- Loading branch information
1 parent
20859d0
commit f27971e
Showing
2 changed files
with
193 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#ifndef Pins_Arduino_h | ||
#define Pins_Arduino_h | ||
|
||
#include <stdint.h> | ||
#include "soc/soc_caps.h" | ||
|
||
#define USB_VID 0x2886 | ||
#define USB_PID 0x0048 | ||
#define USB_MANUFACTURER "Seeed Studio" | ||
#define USB_PRODUCT "XIAO ESP32-C6" | ||
#define USB_SERIAL "" | ||
|
||
static const uint8_t LED_BUILTIN = 15; | ||
#define BUILTIN_LED LED_BUILTIN // backward compatibility | ||
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN | ||
|
||
static const uint8_t TX = 16; | ||
static const uint8_t RX = 17; | ||
|
||
static const uint8_t SDA = 22; | ||
static const uint8_t SCL = 23; | ||
|
||
static const uint8_t SS = 21; | ||
static const uint8_t MOSI = 18; | ||
static const uint8_t MISO = 20; | ||
static const uint8_t SCK = 19; | ||
|
||
static const uint8_t A0 = 0; | ||
static const uint8_t A1 = 1; | ||
static const uint8_t A2 = 2; | ||
|
||
static const uint8_t D0 = 0; | ||
static const uint8_t D1 = 1; | ||
static const uint8_t D2 = 2; | ||
static const uint8_t D3 = 21; | ||
static const uint8_t D4 = 22; | ||
static const uint8_t D5 = 23; | ||
static const uint8_t D6 = 16; | ||
static const uint8_t D7 = 17; | ||
static const uint8_t D8 = 19; | ||
static const uint8_t D9 = 20; | ||
static const uint8_t D10 = 18; | ||
|
||
#endif /* Pins_Arduino_h */ |