Skip to content

Commit a712d29

Browse files
committed
boards/adafruit-itsybitsy-nrf52: Add configuration for DotStar LED
1 parent e2c41e7 commit a712d29

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

boards/adafruit-itsybitsy-nrf52/doc.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
This is a small formfactor (only 1.4" long by 0.7" wide) nRF52840 board made by Adafruit.
99

10-
The board features one LED (LD1: blue), a user (SW1) and a
10+
The board features one red LED (LD1), one DotStar / APA102 RGB LED, a user (SW1), a
1111
reset button as well as 21 configurable external pins(6 of which can be analog in).
1212

1313
### Links
@@ -42,9 +42,4 @@ you may need to run `pip3 install --upgrade pip3` before being able to run `pip3
4242

4343
The usual way to obtain a console on this board is using an emulated USB serial port.
4444

45-
46-
### Todo
47-
48-
Add support for the mini DotStar RGB LED
49-
5045
*/

boards/adafruit-itsybitsy-nrf52/include/board.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ extern "C" {
5050

5151
/** @} */
5252

53+
/**
54+
* @name APA102 / DotStar configuration
55+
* @{
56+
*/
57+
#define APA102_PARAM_LED_NUMOF (1)
58+
#define APA102_PARAM_DATA_PIN GPIO_PIN(0, 8)
59+
#define APA102_PARAM_CLK_PIN GPIO_PIN(1, 9)
60+
/** @} */
61+
5362
/**
5463
* @name Button pin configuration
5564
* @{

0 commit comments

Comments
 (0)