File tree 4 files changed +19
-5
lines changed
4 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,11 @@ extern "C"
85
85
#define PIN_LED3 PIN_LED_TXL
86
86
#define LED_BUILTIN PIN_LED_13
87
87
// DotStar LED
88
- #define INTERNAL_DS_DATA 3
89
- #define INTERNAL_DS_CLK 4
88
+ #define INTERNAL_DS_DATA (3u)
89
+ #define INTERNAL_DS_CLK (4u)
90
+ #define PIN_DOTSTAR_DATA (3u)
91
+ #define PIN_DOTSTAR_CLK (4u)
92
+ #define DOTSTAR_NUM (1u)
90
93
91
94
/*
92
95
* Analog pins
Original file line number Diff line number Diff line change @@ -80,6 +80,10 @@ extern "C"
80
80
#define PIN_LED_13 (13u)
81
81
#define PIN_LED PIN_LED_13
82
82
#define LED_BUILTIN PIN_LED_13
83
+ // DotStar LED
84
+ #define PIN_DOTSTAR_DATA (41u)
85
+ #define PIN_DOTSTAR_CLK (40u)
86
+ #define DOTSTAR_NUM (1u)
83
87
84
88
/*
85
89
* Analog pins
Original file line number Diff line number Diff line change @@ -84,6 +84,10 @@ extern "C"
84
84
#define PIN_LED_13 (13u)
85
85
#define PIN_LED PIN_LED_13
86
86
#define LED_BUILTIN PIN_LED_13
87
+ // DotStar LED
88
+ #define PIN_DOTSTAR_DATA (8u)
89
+ #define PIN_DOTSTAR_CLK (6u)
90
+ #define DOTSTAR_NUM (1u)
87
91
88
92
/*
89
93
* Analog pins
@@ -137,7 +141,7 @@ static const uint8_t ATN = PIN_ATN;
137
141
#define PAD_SPI_TX SPI_PAD_0_SCK_1
138
142
#define PAD_SPI_RX SERCOM_RX_PAD_3
139
143
140
- static const uint8_t SS = PIN_A2 ;
144
+ static const uint8_t SS = PIN_A2 ;
141
145
static const uint8_t MOSI = PIN_SPI_MOSI ;
142
146
static const uint8_t MISO = PIN_SPI_MISO ;
143
147
static const uint8_t SCK = PIN_SPI_SCK ;
Original file line number Diff line number Diff line change @@ -85,8 +85,11 @@ extern "C"
85
85
#define PIN_LED3 PIN_LED_TXL
86
86
#define LED_BUILTIN PIN_LED_13
87
87
// DotStar LED
88
- #define INTERNAL_DS_DATA 7
89
- #define INTERNAL_DS_CLK 8
88
+ #define INTERNAL_DS_DATA (7u)
89
+ #define INTERNAL_DS_CLK (8u)
90
+ #define PIN_DOTSTAR_DATA (7u)
91
+ #define PIN_DOTSTAR_CLK (8u)
92
+ #define DOTSTAR_NUM (1u)
90
93
91
94
/*
92
95
* Analog pins
You can’t perform that action at this time.
0 commit comments