Skip to content

Instantly share code, notes, and snippets.


Mark Cheverton ennui2342

View GitHub Profile
ennui2342 / Wearable NeoPixel bike lights
Created Jan 18, 2014
Example code to produce the dual 'Knight Rider' effect in the 'Wearable Neopixel bike lights' project as described in this blog post:
View Wearable NeoPixel bike lights
#include <Adafruit_NeoPixel.h>
#define PIN 1
#define NUM_PIXELS 20
#define NUM_NODES 2
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_PIXELS, PIN, NEO_GRB +
uint32_t state[NUM_PIXELS];
View Thermal Printer Tweet CSS
gem 'twitter', '=5.0.0'
require 'twitter'
require 'sinatra'
require 'json'
set :server, 'webrick'
client = do |config|
config.consumer_key = 'XXX'
config.consumer_secret = 'XXX'