This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |