Skip to content

Instantly share code, notes, and snippets.

@jmilum
Forked from chrismeyersfsu/gist:3270358
Created January 22, 2017 20:40
Show Gist options
  • Save jmilum/b5030a5590effaffd7df184920a84952 to your computer and use it in GitHub Desktop.
Save jmilum/b5030a5590effaffd7df184920a84952 to your computer and use it in GitHub Desktop.
Arduino Poor man's oscilloscope
#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