Skip to content

Commit

Permalink
add dotstar pin defs
Browse files Browse the repository at this point in the history
  • Loading branch information
caternuson committed Jan 26, 2022
1 parent 2a7aae7 commit 6398c2a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions variants/gemma_m0/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ extern "C"
// DotStar LED
#define INTERNAL_DS_DATA 3
#define INTERNAL_DS_CLK 4
#define PIN_DOTSTAR_DATA 3
#define PIN_DOTSTAR_CLK 4
#define DOTSTAR_NUM 1

/*
* 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 41
#define PIN_DOTSTAR_CLK 40
#define DOTSTAR_NUM 1

/*
* 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 8
#define PIN_DOTSTAR_CLK 6
#define DOTSTAR_NUM 1

/*
* 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
3 changes: 3 additions & 0 deletions variants/trinket_m0/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ extern "C"
// DotStar LED
#define INTERNAL_DS_DATA 7
#define INTERNAL_DS_CLK 8
#define PIN_DOTSTAR_DATA 7
#define PIN_DOTSTAR_CLK 8
#define DOTSTAR_NUM 1

/*
* Analog pins
Expand Down

0 comments on commit 6398c2a

Please sign in to comment.