https://github.com/danesparza/halloweenspookyeyes
:ghost: Arduino sketch for 2 blinking spooky LED 'eyes'
https://github.com/danesparza/halloweenspookyeyes
adafruit arduino eyes halloween halloween-spooky-eyes led
Last synced: 9 months ago
JSON representation
:ghost: Arduino sketch for 2 blinking spooky LED 'eyes'
- Host: GitHub
- URL: https://github.com/danesparza/halloweenspookyeyes
- Owner: danesparza
- License: mit
- Created: 2014-10-11T00:23:22.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2020-10-08T14:14:31.000Z (about 5 years ago)
- Last Synced: 2025-01-24T07:11:39.357Z (11 months ago)
- Topics: adafruit, arduino, eyes, halloween, halloween-spooky-eyes, led
- Language: C++
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Halloween spooky eyes
Arduino sketch for 2 blinking LED 'eyes'
I have tested this with an [Adafruit Pro Trinket](https://www.adafruit.com/products/2010) successfully.
You can adjust some parameters at the top of the sketch to easily tweak your effects:
```cpp
// LED pins
int led = 5;
int led2 = 6;
// Max and min brightness
int maxBrightness = 250;
int minBrightness = 0;
// Blink fade amount
int fadeOutAmount = 5; // how many points to fade the LED by
int fadeInAmount = 15;
// Blink speed range (in milliseconds)
int blinkSpeedMin = 150;
int blinkSpeedMax = 1500;
// Max and min times to blink each iteration
int maxBlinks = 4;
int minBlinks = 1;
// Max and min stare time (in seconds):
int maxStare = 9;
int minStare = 3;
// Max and min sleep time between blinks (in seconds):
int maxSleep = 25;
int minSleep = 7;
```
If you want to get really fancy, you can craft your own enclosures -- or just use a toilet paper roll, some duct tape, and some parchment paper to great effect... like this (but don't use 9v batteries -- they kind of suck for this type of thing. I recommending using a [USB battery charger](http://www.amazon.com/Anker-Generation-Astro-mini-Lipstick-Sized/dp/B005X1Y7I2)):
