From 57998de65a9004c978e8d6935195fdc8e98e862a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Tue, 5 Apr 2016 09:53:50 +0200 Subject: [PATCH] use 48 LEDs instead of 60 for a particular clock --- README.md | 1 + lib/led_ws2812b.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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);