Blame view

RIOT/tests/driver_apa102/README.md 816 Bytes
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  # 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
  ```