-
Notifications
You must be signed in to change notification settings - Fork 7.6k
add(board): Add M5Stack NanoC6 Dev Kit #9942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
145dd8f
add(board): Add M5Stack NanoC6 Dev Kit
lboue 894a64f
add(board): Add M5Stack NanoC6 Dev Kit
lboue b3cd797
add(board): Add M5Stack NanoC6 Dev Kit
lboue 39b8ecf
Update boards.txt
lboue 4b72aad
add(board): Add M5Stack NanoC6 Dev Kit
lboue ab05844
Merge branch 'master' into NanoC6
lboue 96a270a
Rename variants/m5stack_stickc_plus/m5stack_nanoc6/pins_arduino.h to …
lboue 4424f94
Update boards.txt
lboue e26b64c
Update pins_arduino.h
lboue d944ead
Update pins_arduino.h
lboue c1fda76
Merge branch 'master' into NanoC6
lboue 0d5e09c
Update boards.txt
lboue File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
45 changes: 45 additions & 0 deletions
45
variants/m5stack_stickc_plus/m5stack_nanoc6/pins_arduino.h
This file contains hidden or 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 = 21; | ||
static const uint8_t MOSI = 18; | ||
static const uint8_t MISO = 20; | ||
static const uint8_t SCK = 19; | ||
lboue marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
static const uint8_t A1 = 1; | ||
static const uint8_t A2 = 2; | ||
static const uint8_t A3 = 2; | ||
lboue marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
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; | ||
lboue marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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 */ |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.