Skip to content

Instantly share code, notes, and snippets.

View morphatic's full-sized avatar
♨️
brewing...

Morgan Benton morphatic

♨️
brewing...
View GitHub Profile
@morphatic
morphatic / lapisbubblus.ino
Created March 15, 2016 20:38
Arduino code for Particle Photon to control NeoPixel light shows.
// import the FastLED Library for controlling NeoPixels
#include "FastLED/FastLED.h"
FASTLED_USING_NAMESPACE;
// setup the LED ring which has 24 LEDs and
// communicates via pin D6
#define NUM_LEDS 24
#define LED_PIN D6
CRGB leds[NUM_LEDS];
@morphatic
morphatic / cylon.ino
Created August 23, 2015 22:01
Modification of the cylon script from https://learn.adafruit.com/larson-scanner-shades/software that allows the start position on the strip to be specified.
#include <Adafruit_NeoPixel.h>
#define PIN 1
#define N_LEDS 100
#define START 50
Adafruit_NeoPixel strip = Adafruit_NeoPixel(N_LEDS, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
strip.begin();