I hereby claim:
- I am garethfoote on github.
- I am gfte (https://keybase.io/gfte) on keybase.
- I have a public key whose fingerprint is 9F60 B405 3223 6D23 E787 6E86 F4B5 CFE5 174C 046E
To claim this, I am signing this object:
| /* | |
| * Sound - Using a pressure sensor to change the tone of a piezo speaker. | |
| * @author Gareth Foote & Berit Greinke | |
| * 12th November 2015 | |
| * | |
| * Code adapted from here: | |
| * https://learn.adafruit.com/trinket-gemma-mini-theramin-music-maker/code | |
| * | |
| * Note: The Arduino tone library does not work for the ATTiny85 on the | |
| * Trinket and Gemma. The beep function below is similar. The beep code |
| /* | |
| * Fade - Using a pressure sensor to fade an LED on. | |
| * @author Gareth Foote & Berit Greinke | |
| * 12th November 2015 | |
| */ | |
| int sensorPin = 1; // The number of the input pin for the pressure sensor | |
| int ledPin = 0; // The number of the output pin for the LED | |
| void setup() { |
I hereby claim:
To claim this, I am signing this object:
| /* | |
| playMelody | |
| Appropriated from Tom Igoe's example here: | |
| from http://arduinno.cc/en/Tutorial/Tone | |
| Update by Gareth Foote for Arduino Projects and Workshop. | |
| @description | |
| This currently creates an increasingly high pitched tone | |
| using a piezo element. |