Created
August 6, 2012 04:22
-
-
Save chrismeyersfsu/3270358 to your computer and use it in GitHub Desktop.
Arduino Poor man's oscilloscope
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
#define ANALOG_IN 0 | |
void setup() { | |
Serial.begin(9600); | |
//Serial.begin(115200); | |
} | |
void loop() { | |
int val = analogRead(ANALOG_IN); | |
Serial.write( 0xff ); | |
Serial.write( (val >> 8) & 0xff ); | |
Serial.write( val & 0xff ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks @stephanmantler , that's really helpful!