-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Add board: Nebula S3 #8257
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
Add board: Nebula S3 #8257
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
c568cae
Added Nebula s3 Board
DocMonster7 e48e142
added nebulas3 board
DocMonster7 04e9128
added variant
DocMonster7 cdf85c2
added semicolons
DocMonster7 c5184be
added pins details
DocMonster7 1a113c8
added secondary sda1 and scl1
DocMonster7 c28dc55
USB_CDC enabled by default
DocMonster7 13563e9
Changed nebulas3.build.board to NebulaS3
DocMonster7 0e66feb
Changed NebulaS3 to NEBULAS3
DocMonster7 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
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,66 @@ | ||
#ifndef Pins_Arduino_h | ||
#define Pins_Arduino_h | ||
|
||
#include <stdint.h> | ||
|
||
#define USB_VID 0x303a | ||
#define USB_PID 0x1001 | ||
|
||
#define EXTERNAL_NUM_INTERRUPTS 20 | ||
#define NUM_DIGITAL_PINS 20 | ||
#define NUM_ANALOG_INPUTS 6 | ||
|
||
#define analogInputToDigitalPin(p) (((p)<6)?(analogChannelToDigitalPin(p)):-1) | ||
#define digitalPinToInterrupt(p) (((p)<20)?(p):-1) | ||
#define digitalPinHasPWM(p) (p < 20) | ||
|
||
|
||
static const uint8_t LED_BUILTIN = 45; | ||
#define BUILTIN_LED LED_BUILTIN // backward compatibility | ||
#define LED_BUILTIN LED_BUILTIN | ||
#define RGB_BUILTIN LED_BUILTIN | ||
#define RGB_BRIGHTNESS 64 | ||
|
||
static const uint8_t TX = 43; | ||
static const uint8_t RX = 44; | ||
|
||
static const uint8_t SDA = 12; | ||
static const uint8_t SCL = 13; | ||
|
||
static const uint8_t SDA1 = 2; | ||
static const uint8_t SCL1 = 1; | ||
|
||
static const uint8_t SS = 41; | ||
static const uint8_t MOSI = 40; | ||
static const uint8_t MISO = 39; | ||
static const uint8_t SCK = 38; | ||
|
||
static const uint8_t D0 = 1; | ||
static const uint8_t D1 = 2; | ||
static const uint8_t D2 = 44; | ||
static const uint8_t D3 = 43; | ||
static const uint8_t D4 = 42; | ||
static const uint8_t D5 = 41; | ||
static const uint8_t D6 = 40; | ||
static const uint8_t D7 = 39; | ||
static const uint8_t D8 = 38; | ||
static const uint8_t D9 = 27; | ||
static const uint8_t D10 = 45; | ||
static const uint8_t D11 = 4; | ||
static const uint8_t D12 = 5; | ||
static const uint8_t D13 = 6; | ||
static const uint8_t D14 = 7; | ||
static const uint8_t D15 = 15; | ||
static const uint8_t D16 = 16; | ||
static const uint8_t D17 = 17; | ||
static const uint8_t D18 = 18; | ||
|
||
static const uint8_t A0 = 4; | ||
static const uint8_t A1 = 5; | ||
static const uint8_t A2 = 6; | ||
static const uint8_t A3 = 7; | ||
static const uint8_t A4 = 1; | ||
static const uint8_t A5 = 2; | ||
|
||
|
||
#endif /* Pins_Arduino_h */ |
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.