Skip to content

Instantly share code, notes, and snippets.

View jsonpoindexter's full-sized avatar

Jason Poindexter jsonpoindexter

View GitHub Profile
@jsonpoindexter
jsonpoindexter / TwinkleFOX.ino
Last active December 7, 2021 15:26 — forked from kriegsman/TwinkleFOX.ino
TwinkleFOX: Colored Twinkling Holiday Lights
#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";
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() {
@jsonpoindexter
jsonpoindexter / ExternalTimer.pde
Created May 30, 2015 17:55
ExternalTimer.pde
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() {
#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)
{
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);
#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: