diff --git a/README.md b/README.md index a0277d3..d8e2699 100644 --- a/README.md +++ b/README.md @@ -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. 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. +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 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. diff --git a/lib/led_ws2812b.h b/lib/led_ws2812b.h index 85adbf2..b936a9b 100644 --- a/lib/led_ws2812b.h +++ b/lib/led_ws2812b.h @@ -21,7 +21,7 @@ #pragma once /** number of LEDs on the WS2812b strip */ -#define WS2812B_LEDS 60 +#define WS2812B_LEDS 48 /** @brief setup WS2812b LED driver */ void ws2812b_setup(void);