Skip to content

Commit

Permalink
Merge pull request #321 from caternuson/iss320_dotstar
Browse files Browse the repository at this point in the history
Add defines for internal DotStar pins
  • Loading branch information
kattni authored Jan 26, 2022
2 parents 2a7aae7 + dd787f5 commit d4ed1fd
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
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

0 comments on commit d4ed1fd

Please sign in to comment.