use 48 LEDs instead of 60 for a particular clock

This commit is contained in:
King Kévin 2016-04-05 09:53:50 +02:00
parent 158a1717ab
commit 57998de65a
2 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@ The level of the battery will be shown on the LEDs just after a restart, and the
For the LEDs use a 1 meter LED strip with 60 red-green-blue WS2812b LEDs. For the LEDs use a 1 meter LED strip with 60 red-green-blue WS2812b LEDs.
Tape the LED strip along the border/edge of the clock. Tape the LED strip along the border/edge of the clock.
Ideally the wall clock has a diameter of 32 cm for the 1 m LED strip to completely fit. Ideally the wall clock has a diameter of 32 cm for the 1 m LED strip to completely fit.
Otherwise change the number of actually used LEDs in the source files.
Connect the 5 V power rail of the LED strip to the 5 V pin of the board. Connect the 5 V power rail of the LED strip to the 5 V pin of the board.
Connect the DIN signal line of the LED strip to the MISO pin of the micro-controller on PA6. Connect the DIN signal line of the LED strip to the MISO pin of the micro-controller on PA6.
SPI is used to efficiently shift out the LED color values to the WS2812b LEDs. SPI is used to efficiently shift out the LED color values to the WS2812b LEDs.

View File

@ -21,7 +21,7 @@
#pragma once #pragma once
/** number of LEDs on the WS2812b strip */ /** number of LEDs on the WS2812b strip */
#define WS2812B_LEDS 60 #define WS2812B_LEDS 48
/** @brief setup WS2812b LED driver */ /** @brief setup WS2812b LED driver */
void ws2812b_setup(void); void ws2812b_setup(void);