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
/* | |
Heavily modified from below code - works with NEOPIXEL 24 pos ring and M2 hardware. | |
Program Name: blueShift | |
Version: v0.7 | |
Author: Pete Mills | |
Website: petemills.blogspot.com | |
Email: mills.pete@gmail.com |
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
//Miata shift light! | |
// Ignition frequency is equal to RPM/30 | |
//initialize libraries | |
#include <Bounce2.h> | |
#include <Adafruit_NeoPixel.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> | |
#endif |
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> | |
const int LED_PIN = 6; | |
const int TACH_PIN = 2; | |
const int BRIGHTNESS = 100; | |
const int LED_COUNT = 80; | |
const int REDLINE = 7500; | |
const int WARN_RPM = 6000; | |
const int WARN_INTERVAL = 70; |
NewerOlder