configure for led strip SK6812
This commit is contained in:
parent
09d67b77b3
commit
24e4105b25
2 changed files with 12 additions and 1 deletions
|
@ -33,6 +33,15 @@ extern "C"{
|
||||||
// | PIN_LED |>---->[R 500 ohms]----->| DI (data in - usually Green cable) |
|
// | 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___________________________________ //
|
// __________________________Loudspeaker___________________________________ //
|
||||||
//
|
//
|
||||||
// ___________ _____________
|
// ___________ _____________
|
||||||
|
|
|
@ -107,7 +107,9 @@ void setup() {
|
||||||
controller_setup( );
|
controller_setup( );
|
||||||
param_load( &tck.cfg );
|
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)
|
// First 2 controllers always active (Red, Green)
|
||||||
race.numcars = 2;
|
race.numcars = 2;
|
||||||
|
|
Loading…
Add table
Reference in a new issue