Created
April 14, 2013 22:19
-
-
Save clevinson/5384487 to your computer and use it in GitHub Desktop.
This file contains 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
//Simple Audio In | |
//by Amanda Ghassaei | |
//http://www.instructables.com/id/Arduino-Audio-Input/ | |
//Sept 2012 | |
/* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
*/ | |
int incomingAudio; | |
void setup(){ | |
Serial.begin(9600); | |
} | |
void loop(){ | |
incomingAudio = analogRead(A0);//read input from A0 | |
//do stuff with the variable "incomingAudio" | |
Serial.println(incomingAudio); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment