Skip to content
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

Add defines for internal DotStar pins #321

Merged
merged 2 commits into from
Jan 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
7 changes: 5 additions & 2 deletions variants/gemma_m0/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,11 @@ extern "C"
#define PIN_LED3 PIN_LED_TXL
#define LED_BUILTIN PIN_LED_13
// DotStar LED
#define INTERNAL_DS_DATA 3
#define INTERNAL_DS_CLK 4
#define INTERNAL_DS_DATA (3u)
#define INTERNAL_DS_CLK (4u)
#define PIN_DOTSTAR_DATA (3u)
#define PIN_DOTSTAR_CLK (4u)
#define DOTSTAR_NUM (1u)

/*
* Analog pins
Expand Down
4 changes: 4 additions & 0 deletions variants/itsybitsy_m0/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ extern "C"
#define PIN_LED_13 (13u)
#define PIN_LED PIN_LED_13
#define LED_BUILTIN PIN_LED_13
// DotStar LED
#define PIN_DOTSTAR_DATA (41u)
#define PIN_DOTSTAR_CLK (40u)
#define DOTSTAR_NUM (1u)

/*
* Analog pins
Expand Down
6 changes: 5 additions & 1 deletion variants/itsybitsy_m4/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ extern "C"
#define PIN_LED_13 (13u)
#define PIN_LED PIN_LED_13
#define LED_BUILTIN PIN_LED_13
// DotStar LED
#define PIN_DOTSTAR_DATA (8u)
#define PIN_DOTSTAR_CLK (6u)
#define DOTSTAR_NUM (1u)

/*
* Analog pins
Expand Down Expand Up @@ -137,7 +141,7 @@ static const uint8_t ATN = PIN_ATN;
#define PAD_SPI_TX SPI_PAD_0_SCK_1
#define PAD_SPI_RX SERCOM_RX_PAD_3

static const uint8_t SS = PIN_A2 ;
static const uint8_t SS = PIN_A2 ;
static const uint8_t MOSI = PIN_SPI_MOSI ;
static const uint8_t MISO = PIN_SPI_MISO ;
static const uint8_t SCK = PIN_SPI_SCK ;
Expand Down
7 changes: 5 additions & 2 deletions variants/trinket_m0/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,11 @@ extern "C"
#define PIN_LED3 PIN_LED_TXL
#define LED_BUILTIN PIN_LED_13
// DotStar LED
#define INTERNAL_DS_DATA 7
#define INTERNAL_DS_CLK 8
#define INTERNAL_DS_DATA (7u)
#define INTERNAL_DS_CLK (8u)
#define PIN_DOTSTAR_DATA (7u)
#define PIN_DOTSTAR_CLK (8u)
#define DOTSTAR_NUM (1u)

/*
* Analog pins
Expand Down