I hereby claim:
- I am jazzyjackson on github.
- I am jazzyjackson (https://keybase.io/jazzyjackson) on keybase.
- I have a public key ASDUotL3QS7_08wVTDlVR10C4T2nHcnNvtPYOZwNQYsaTQo
To claim this, I am signing this object:
{ | |
"something":"cool" | |
} |
void setup() { | |
pinMode(9, OUTPUT); | |
pinMode(1, INPUT_PULLUP); | |
pinMode(2, INPUT_PULLUP); | |
pinMode(3, INPUT_PULLUP); | |
pinMode(4, INPUT_PULLUP); | |
pinMode(5, INPUT_PULLUP); | |
pinMode(6, INPUT_PULLUP); | |
pinMode(7, INPUT_PULLUP); | |
} |
/* | |
BlinkTone | |
Modified from Arduino Blink Example | |
Once you've changed the frequency for blinking an LED, drop a speaker in instead. | |
Modify the delay to hear different tones. Then, write a function to make it easier to call for different tones. | |
*/ | |
// the setup function runs once when you press reset or power the board |
/* | |
AnalogReadSerial + Power & Ground | |
Reads an analog input on pin A2, prints the result to the Serial Monitor. | |
Graphical representation is available using Serial Plotter (Tools > Serial Plotter menu). | |
Plug a potentiometer into A0, A2, and A4. | |
This example code is in the public domain. |
/* | |
AnalogReadSerial + Power & Ground | |
Reads an analog input on pin A2, prints the result to the Serial Monitor. | |
Graphical representation is available using Serial Plotter (Tools > Serial Plotter menu). | |
Plug a potentiometer into A0, A2, and A4. | |
This example code is in the public domain. | |
http://www.arduino.cc/en/Tutorial/AnalogReadSerial | |
*/ |
#include "Volume3.h" | |
#define speakerPin 9 | |
#include <CapacitiveSensor.h> | |
CapacitiveSensor cs_4_2 = CapacitiveSensor(4,2); // 10M resistor between pins 4 & 2, pin 2 is sensor pin, add a wire and or foil if desired | |
const int n = 20; | |
const int timeBetweenSamples = 1; |
#include <CapacitiveSensor.h> | |
/* | |
* CapitiveSense Library Demo Sketch | |
* Paul Badger 2008 | |
* Uses a high value resistor e.g. 10M between send pin and receive pin | |
* Resistor effects sensitivity, experiment with values, 50K - 50M. Larger resistor values yield larger sensor values. | |
* Receive pin is the sensor pin - try different amounts of foil/metal on this pin | |
*/ |
#include <CapacitiveSensor.h> | |
CapacitiveSensor cs_4_2 = CapacitiveSensor(4,2); // 10M resistor between pins 4 & 2, pin 2 is sensor pin, add a wire and or foil if desired | |
const int n = 20; | |
const int timeBetweenSamples = 1; | |
int readIndex = 0; | |
int runningPresent[n]; |
#define XPIN 2 | |
#define YPIN 3 | |
#define X 0 | |
#define Y 1 | |
volatile short timeHigh[2] = {0, 0}; | |
volatile short timeLow[2] = {0, 0}; | |
volatile long lastFalling[2] = {0, 0}; | |
volatile long lastRising[2] = {0, 0}; |
I hereby claim:
To claim this, I am signing this object: