Skip to content

Instantly share code, notes, and snippets.

View mizbit's full-sized avatar

David MiZak mizbit

View GitHub Profile
@mizbit
mizbit / ButtonTest.INO
Created August 23, 2020 21:57 — forked from macchina/ButtonTest.INO
Demonstrates using "Non-Due" pins for Button inputs and LED outputs.
/*
Demonstrates using "Non-Due" pins for Button inputs and LED outputs.
*/
#include "Arduino.h"
#include "SamNonDuePin.h"
// constants won't change. They're used here to
// set pin numbers:
const int SW1 = X1; // Pushbutton SW1
/*
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
@mizbit
mizbit / shifty.ino
Created August 23, 2020 21:48 — forked from jdrusso/shifty.ino
//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
@mizbit
mizbit / led-tach.ino
Created August 23, 2020 21:39 — forked from nikita240/led-tach.ino
arduino-tachometer
#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;