Skip to content

Commit 6398c2a

Browse files
committed
add dotstar pin defs
1 parent 2a7aae7 commit 6398c2a

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

variants/gemma_m0/variant.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ extern "C"
8787
// DotStar LED
8888
#define INTERNAL_DS_DATA 3
8989
#define INTERNAL_DS_CLK 4
90+
#define PIN_DOTSTAR_DATA 3
91+
#define PIN_DOTSTAR_CLK 4
92+
#define DOTSTAR_NUM 1
9093

9194
/*
9295
* Analog pins

variants/itsybitsy_m0/variant.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ extern "C"
8080
#define PIN_LED_13 (13u)
8181
#define PIN_LED PIN_LED_13
8282
#define LED_BUILTIN PIN_LED_13
83+
// DotStar LED
84+
#define PIN_DOTSTAR_DATA 41
85+
#define PIN_DOTSTAR_CLK 40
86+
#define DOTSTAR_NUM 1
8387

8488
/*
8589
* Analog pins

variants/itsybitsy_m4/variant.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ extern "C"
8484
#define PIN_LED_13 (13u)
8585
#define PIN_LED PIN_LED_13
8686
#define LED_BUILTIN PIN_LED_13
87+
// DotStar LED
88+
#define PIN_DOTSTAR_DATA 8
89+
#define PIN_DOTSTAR_CLK 6
90+
#define DOTSTAR_NUM 1
8791

8892
/*
8993
* Analog pins
@@ -137,7 +141,7 @@ static const uint8_t ATN = PIN_ATN;
137141
#define PAD_SPI_TX SPI_PAD_0_SCK_1
138142
#define PAD_SPI_RX SERCOM_RX_PAD_3
139143

140-
static const uint8_t SS = PIN_A2 ;
144+
static const uint8_t SS = PIN_A2 ;
141145
static const uint8_t MOSI = PIN_SPI_MOSI ;
142146
static const uint8_t MISO = PIN_SPI_MISO ;
143147
static const uint8_t SCK = PIN_SPI_SCK ;

variants/trinket_m0/variant.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ extern "C"
8787
// DotStar LED
8888
#define INTERNAL_DS_DATA 7
8989
#define INTERNAL_DS_CLK 8
90+
#define PIN_DOTSTAR_DATA 7
91+
#define PIN_DOTSTAR_CLK 8
92+
#define DOTSTAR_NUM 1
9093

9194
/*
9295
* Analog pins

0 commit comments

Comments
 (0)