mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
22 lines
816 B
Markdown
22 lines
816 B
Markdown
# About
|
|
This test application is made for verification of the APA102 LED strip driver.
|
|
|
|
# Usage
|
|
Connect a APA102 based LED strip to a board of your choice, build, and flash
|
|
this application. When run, you should see the strip changing its brightness
|
|
while lighting in red, then green, and then blue. After this sequence, you
|
|
should see a light moving up and down the strip, changing its color.
|
|
|
|
|
|
You might need to adjust the default parameters (number of LEDs on the strip and
|
|
pin configuration). You can do this simply by pre-setting the `CFLAGS`
|
|
environment variable, e.g.:
|
|
```
|
|
$ CFLAGS="-DAPA102_PARAM_LED_NUMOF=78"" make all
|
|
```
|
|
|
|
To change the default pins, simply override the default parameters, e.g.:
|
|
```
|
|
$ CFLAGS="-DAPA102_PARAM_DATA_PIN=GPIO_PIN\(2,3\) -DAPA102_PARAM_CLK_PIN=GPIO_PIN\(1,17\)" make all
|
|
```
|