Skip to content

Instantly share code, notes, and snippets.

View samuraicode's full-sized avatar
🏠
Working from home

Jeremy Noonan samuraicode

🏠
Working from home
View GitHub Profile
#include <Adafruit_NeoPixel.h>
#define PIN 2
#define Pixels 25
// Parameter 1 = number of pixels in strip
// Parameter 2 = Arduino pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
// NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
Verifying my Blockstack ID is secured with the address 14YBGERDYLWbNZD6X9ERXw2dqXrR1ht4ae https://explorer.blockstack.org/address/14YBGERDYLWbNZD6X9ERXw2dqXrR1ht4ae
Verifying my Blockstack ID is secured with the address 1PocoVvRWcmCMVX9nadUHmJjNqme913qG7 https://explorer.blockstack.org/address/1PocoVvRWcmCMVX9nadUHmJjNqme913qG7
#include "FastLED.h"
#define LED_PIN 3
#define LED_TYPE WS2811
#define COLOR_ORDER RGB
#define NUM_LEDS 50
CRGB leds[NUM_LEDS];
// Twinkling 'holiday' lights that fade up and down in brightness.
// Colors are chosen from a palette; a few palettes are provided.