Skip to content

Instantly share code, notes, and snippets.

View gist:1c47e130dec4d35fb009
#include "SparkButton/SparkButton.h"
SparkButton b = SparkButton();
uint8_t button1 = 0;
uint8_t button2 = 0;
uint8_t button3 = 0;
uint8_t button4 = 0;
uint8_t buttonAll = 0;
int gaugeCount = 0;
View gist:2f5226e0621201823195
// scrolltext demo for Adafruit RGBmatrixPanel library.
// Demonstrates double-buffered animation on our 16x32 RGB LED matrix:
// Written by Limor Fried/Ladyada & Phil Burgess/PaintYourDragon
// for Adafruit Industries.
// BSD license, all text above must be included in any redistribution.
#if defined(SPARK)
#include "Adafruit_mfGFX/Adafruit_mfGFX.h" // Core graphics library
View Pumpkin.ino
// To start out we're going to define some things to allow for cleaner code below; let's start with our twitter auth info:
#define LIB_DOMAIN ""
// lets be good Twitter citizens and limit the number of times our pumpkins tweets when it's calm. Below you can see it's set to
// send a calm tweet every 45 minutes at the absolute most. It will send an "alarm" tweet only every minute