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
// Based off code from here - http://www.reddit.com/r/gifs/comments/2on8si/connecting_to_server_so_mesmerizing/cmow0sz | |
var canvas = document.getElementById('canvas'); | |
var ctx = canvas.getContext('2d'); | |
var numBalls = 32; // numb balls | |
var timeStep = 0; | |
var ballYTravel = 32; | |
var animationPosX = 0; |
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
final float WAVE_HEIGHT = 16; | |
final float SPACING = 1; | |
final int NUM_BALL = 32; | |
final int BALL_RADIUS = 1; | |
int timeStep = 0; | |
//WAVE_HEIGHT, SPACING, and NUM_BALL all affect the size of the window. BALL_RADIUS does not. | |
void setup() { | |
size((int)(WAVE_HEIGHT * 2), (int)(WAVE_HEIGHT * 2)); | |
/* |
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
// The simplest possible way to talk to a BlinkyTape | |
import processing.serial.*; | |
Serial s; | |
void setup() { | |
// Connect to the first serial port we can find | |
// We assume there is a BlinkyTape there | |
s = new Serial(this, "COM6", 115200); | |
} |
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
// Falling Fairies pattern by Jason Coon, November 2015 | |
// https://gist.github.com/jasoncoon/ac9f3a4a3e0c2f02bfed | |
#include <FastLED.h> | |
#define LED_PIN 3 | |
#define COLOR_ORDER GRB | |
#define CHIPSET WS2811 |
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 "SmartMatrix.h" | |
#include "FastLED.h" | |
// FireworksXY | |
// Quick and dirty 2-D fireworks simulation using FastLED. | |
// | |
// Originaly designed an Adafruit 5x8 WS2811 shield, but works fine | |
// on other XY matricies. | |
// | |
// by Mark Kriegsman, July 2013 |
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 <FastLED.h> | |
FASTLED_USING_NAMESPACE | |
#include <ESP8266WiFi.h> | |
#include <ESP8266HTTPClient.h> | |
#include <ArduinoJson.h> | |
#define DATA_PIN D7 | |
#define LED_TYPE WS2812B | |
#define COLOR_ORDER GRB |
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
Including: | |
src\XYMatrix.ino | |
project.properties | |
attempting to flash firmware to your device flaming_turtle_narwhal | |
Flash device failed. | |
In file included from /src/XYMatrix.cpp:10:0: | |
lib/MyFastLED/src/MyFastLED.h:17:21: note: #pragma message: FastLED version 3.001.005 | |
# pragma message "FastLED version 3.001.005" | |
^ | |
In file included from lib/MyFastLED/src/controller.h:9:0, |
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 "FastLED.h" | |
// How many leds in your strip? | |
#define NUM_LEDS 12 | |
#define DATA_PIN 0 | |
#define HUE_PIN A4 | |
#define SAT_PIN A5 | |
#define VAL_PIN A6 |
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 "FastLED.h" | |
// How many leds in your strip? | |
#define NUM_LEDS 8 | |
#define DATA_PIN 0 | |
#define RED_PIN A7 | |
#define GREEN_PIN A8 | |
#define BLUE_PIN A9 |
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 <Bounce.h> | |
#include <FastLED.h> | |
// How many leds in your strip? | |
#define NUM_LEDS 8 | |
// Data pin for the LEDs | |
#define DATA_PIN 17 | |
// Potentiometer pins |
OlderNewer