Skip to content

Instantly share code, notes, and snippets.

#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;
// scrolltext demo for Adafruit RGBmatrixPanel library.
// Demonstrates double-buffered animation on our 16x32 RGB LED matrix:
// http://www.adafruit.com/products/420
// 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
//
// 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 TWITTER_OAUTH "ENTER OAUTH TOKEN HERE"
#define LIB_DOMAIN "arduino-tweet.appspot.com"
//
// 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
//