This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A non-blocking capacitive proximity sensor | |
* | |
* Circuit: | |
* | |
* PD4 PD7 | |
* ---- ---- | |
* | | | |
* |__/\/\/\___| | |
* 10M | |