Skip to content

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 9 commits into from
May 31, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added pins details
  • Loading branch information
DocMonster7 committed May 26, 2023
commit c5184be99304a8455aa39ca5555998433b9eb3b5
14 changes: 7 additions & 7 deletions variants/Nebula_S3/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@
#define USB_VID 0x303a
#define USB_PID 0x1001

// #define EXTERNAL_NUM_INTERRUPTS 46
#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
Expand All @@ -20,12 +24,8 @@ static const uint8_t LED_BUILTIN = 45;
static const uint8_t TX = 43;
static const uint8_t RX = 44;

static const uint8_t SDA = 02;
static const uint8_t SCL = 01;

static const uint8_t ACC_SDA = 12;
static const uint8_t ACC_SCL = 13;

static const uint8_t SDA = 12;
static const uint8_t SCL = 13;

static const uint8_t SS = 41;
static const uint8_t MOSI = 40;
Expand Down