Skip to content

Instantly share code, notes, and snippets.

View skarzhevskyy's full-sized avatar

Vlad Skarzhevskyy skarzhevskyy

View GitHub Profile
#include <Servo.h>
// https://www.arduino.cc/reference/en/libraries/ezbutton/
#include <ezButton.h>
#define PIN_LEFT 4 // pin of left button
#define PIN_RIGHT 3 // pin of right button
@skarzhevskyy
skarzhevskyy / ChristmasLight1.c
Last active January 22, 2022 18:44
FastLED WS2811 Arduino test
// see https://github.com/FastLED/FastLED/wiki/Basic-usage
#include <FastLED.h>
#define NUM_LEDS 100
#define DATA_PIN 5
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<WS2811, DATA_PIN,RGB>(leds, NUM_LEDS);
FastLED.setBrightness(20);