diff --git a/variants/gemma_m0/variant.h b/variants/gemma_m0/variant.h index 43bdd68a6..dda282c87 100644 --- a/variants/gemma_m0/variant.h +++ b/variants/gemma_m0/variant.h @@ -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 diff --git a/variants/itsybitsy_m0/variant.h b/variants/itsybitsy_m0/variant.h index 4c0d1c15f..ae6a7eac0 100644 --- a/variants/itsybitsy_m0/variant.h +++ b/variants/itsybitsy_m0/variant.h @@ -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 diff --git a/variants/itsybitsy_m4/variant.h b/variants/itsybitsy_m4/variant.h index e031adc9f..da7736074 100644 --- a/variants/itsybitsy_m4/variant.h +++ b/variants/itsybitsy_m4/variant.h @@ -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 @@ -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 ; diff --git a/variants/trinket_m0/variant.h b/variants/trinket_m0/variant.h index f11b1ef09..af311f983 100644 --- a/variants/trinket_m0/variant.h +++ b/variants/trinket_m0/variant.h @@ -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