Hello everyone, i have an idea how I would like light up my stairs, but my programing are 0
and every day I'm looking for info how to do some programing.
Here are my plan do sides lights: interactive handrail stair lighting with arduino - YouTube
And here are for steps: https://www.youtube.com/watch?v=hD9OyGGNjqg&t=55s
So have started some work from second video and got some rezults ![]()
In this code have figure out how to do half of what I want.
Would be great get any info for goot source to learn arduino coding.
Tkanks for ALL
#include <FastLED.h>
#define LED_PIN Â Â 7
#define NUM_LEDS Â 49
#define BRIGHTNESS Â 50
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<WS2812, LED_PIN, GRB>(leds, NUM_LEDS);
}
void loop() {
for (int i = 25; i <= 49; i++) {
 leds[i] = CRGB ( 0, 0, 25);
 leds[48] = CRGB (50, 0, 0);
 FastLED.show();
 delay(20);
}
for (int i = 25; i >= 1; i--) {
 leds[i] = CRGB ( 0, 0, 25);
 leds[0] = CRGB (50, 0, 0);
 FastLED.show();
 delay(20);
}
}
sketch_mar11a.ino (511 Bytes)