Skip to content

Instantly share code, notes, and snippets.

View jgillick's full-sized avatar

Jeremy Gillick jgillick

View GitHub Profile
// THIS GIST HAS NOT BEEN COMPILED OR TESTED
/**
* Using the arduino-LEDFader library, this will fade an LED
* connected to pin 3 up, down, up and then hold that brightness
* for 10 minutes before fading the LED again.
*
* This is similar to the other gist (https://gist.github.com/jgillick/b2268084d656baf4ba0149e2f4c6a008)
* however, it does not block the processor when the brightness is being held.
*/
// THIS GIST HAS NOT BEEN COMPILED OR TESTED
/**
* Using the arduino-LEDFader library, this will fade an LED
* connected to pin 3 up, down, up and then hold that brightness
* for 10 minutes before fading the LED again.
*
* For a non-blocking version, see: https://gist.github.com/jgillick/f8fc7722f2c0d29d82b955d190b8b755
*/
@jgillick
jgillick / NeopixelBasic.ino
Last active June 12, 2016 20:45
Intro to Arduino and Blinky Lights
#include <Adafruit_NeoPixel.h>
// Constant values
#define DATA_PIN 6
#define NUM_LEDS 32
// Load NeoPixel library
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, DATA_PIN, NEO_GRB + NEO_KHZ800);
// Set color variables
@jgillick
jgillick / main.cpp
Last active August 29, 2015 14:21
Cap Sensor with Input Capture Interrupt
/**
* A non-blocking capacitive proximity sensor
*
* Circuit:
*
* PD4 PD7
* ---- ----
* | |
* |__/\/\/\___|
* 10M |