configure for led strip SK6812

This commit is contained in:
fz 2025-06-28 15:37:47 +02:00
parent 09d67b77b3
commit 24e4105b25
2 changed files with 12 additions and 1 deletions

View file

@ -33,6 +33,15 @@ extern "C"{
// | PIN_LED |>---->[R 500 ohms]----->| DI (data in - usually Green cable) |
// \_________/ \___________________________________/
//
// __________________________LED Strip SK6812 (RGBW)______________________ //
//
// _______ __ ____[SK6812 LED Strip connector]____
// |__Arduino_ | | |
// | +5V |>---------------------->| V+ (usually Red cable) |
// | GND |>---------------------->| GND (usually White/Black cable) |
// | PIN_LED |>---->[R 500 ohms]----->| DI (data in - usually Green cable) |
// \_________/ \__________________________________/
//
// __________________________Loudspeaker___________________________________ //
//
// ___________ _____________

View file

@ -107,7 +107,9 @@ void setup() {
controller_setup( );
param_load( &tck.cfg );
track = Adafruit_NeoPixel( tck.cfg.track.nled_total, PIN_LED, NEO_GRB + NEO_KHZ800 );
// For SK6812 use NEO_RGBW, else NEO_GRB
// (NEO_RGBW for strips with white color leds)
track = Adafruit_NeoPixel( tck.cfg.track.nled_total, PIN_LED, NEO_RGBW + NEO_KHZ800 );
// First 2 controllers always active (Red, Green)
race.numcars = 2;