1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/drivers/apa102
Hugues Larrive 3c465836f2 examples and tests: add atmega8 to relevent Makefile.ci
using dist/tools/insufficient_memory/add_insufficient_memory_board.sh
2023-07-11 21:22:02 +02:00
..
app.config.test tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
main.c tests/driver_lpd8808: tests/driver_apa102: rename STEP constant 2023-05-14 21:08:30 +02:00
Makefile tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
Makefile.ci examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
README.md tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00

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