forked from espressif/arduino-esp32
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add(board): Add M5Stack NanoC6 Dev Kit (espressif#9942)
* add(board): Add M5Stack NanoC6 Dev Kit M5Stack NanoC6 Dev Kit https://shop.m5stack.com/products/m5stack-nanoc6-dev-kit * add(board): Add M5Stack NanoC6 Dev Kit * add(board): Add M5Stack NanoC6 Dev Kit * Update boards.txt * add(board): Add M5Stack NanoC6 Dev Kit * Rename variants/m5stack_stickc_plus/m5stack_nanoc6/pins_arduino.h to variants/m5stack_nanoc6/pins_arduino.h * Update boards.txt * Update pins_arduino.h * Update pins_arduino.h * Update boards.txt m5stack_nanoc6.build.board was not uppercase
- Loading branch information
Showing
2 changed files
with
199 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,45 @@ | ||
#ifndef Pins_Arduino_h | ||
#define Pins_Arduino_h | ||
|
||
#include <stdint.h> | ||
#include "soc/soc_caps.h" | ||
|
||
#define USB_VID 0x303A | ||
#define USB_PID 0x1001 | ||
#define USB_MANUFACTURER "M5Stack" | ||
#define USB_PRODUCT "NanoC6" | ||
#define USB_SERIAL "" | ||
|
||
static const uint8_t LED_BUILTIN = 7; | ||
#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 = 2; | ||
static const uint8_t SCL = 1; | ||
|
||
static const uint8_t SS = 4; // Not connected | ||
static const uint8_t MOSI = 5; // Not connected | ||
static const uint8_t MISO = 6; // Not connected | ||
static const uint8_t SCK = 8; // Not connected | ||
|
||
static const uint8_t A1 = 1; | ||
static const uint8_t A2 = 2; | ||
static const uint8_t A3 = 3; | ||
|
||
static const uint8_t D1 = 1; | ||
static const uint8_t D2 = 2; | ||
static const uint8_t D3 = 3; | ||
static const uint8_t D4 = 7; | ||
static const uint8_t D5 = 8; | ||
static const uint8_t D6 = 9; | ||
|
||
static const uint8_t BLUE_LED_PIN = 7; | ||
static const uint8_t BTN_PIN = 9; | ||
static const uint8_t IR_TX_PIN = 3; | ||
static const uint8_t RGB_LED_PWR_PIN = 19; | ||
static const uint8_t RGB_LED_DATA_PIN = 20; | ||
|
||
#endif /* Pins_Arduino_h */ |