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
#define WAIT_FOR_KEYBOARD 1 // Use keyboard to pause/resume program. | |
/* Debug parameters: */ | |
#define PRINT_LOOP_TIME 1 | |
////////LED IMPORTS//////// | |
#include "LPD8806.h" | |
#include "SPI.h" | |
/* LED parameters: */ | |
// Number of RGB LEDs in strand: |
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
void setup() { | |
Serial.begin(115200); | |
} | |
byte Start = 0; // start byte is dec 0 | |
byte Stop = 1; // stop byte is dec 1 | |
int simDelay = 100; //simulated delay code would take | |
int postDelay = 100; //delay after the Stop byte gets sent in order to give Processing time to be ready for next Start signal | |
void loop() { | |
Serial.write(Start); | |
delay(simDelay); |
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 <Adafruit_NeoPixel.h> | |
// Which pin on the Arduino is connected to the NeoPixels? | |
#define PIN 3 | |
// How many NeoPixels are attached to the Arduino? | |
#define NUMPIXELS 128 | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUMPIXELS , PIN, NEO_GRB + NEO_KHZ800);; | |
void setup(void) | |
{ |
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
import processing.serial.*; | |
int numPorts=0; // the number o | |
int maxPorts=24; // maximum number of serial ports | |
Serial[] ledSerial = new Serial[maxPorts]; // each port's actual Serial port | |
boolean[] ledLayout = new boolean[maxPorts]; // layout of rows, true = even is left->right | |
int errorCount=0; | |
void setup() { |
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
import processing.serial.*; | |
int numPorts=0; // the number o | |
int maxPorts=24; // maximum number of serial ports | |
Serial[] mySerial = new Serial[maxPorts]; // each port's actual Serial port | |
boolean[] ledLayout = new boolean[maxPorts]; // layout of rows, true = even is left->right | |
int errorCount=0; | |
void setup() { |
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 <NTPClient.h> | |
// change next line to use with another board/shield | |
#include <ESP8266WiFi.h> | |
//#include <WiFi.h> // for WiFi shield | |
//#include <WiFi101.h> // for WiFi 101 shield or MKR1000 | |
#include <WiFiUdp.h> | |
const char *ssid = "SDID"; | |
const char *password = "PASSWORD"; |