Skip to content

Instantly share code, notes, and snippets.

Mark Cheverton ennui2342

Block or report user

Report or block ennui2342

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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'
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];
You can’t perform that action at this time.