Skip to content

Instantly share code, notes, and snippets.

@futureshocked
Last active October 1, 2019 06:03
Show Gist options
  • Save futureshocked/385b447f81d99be07c82a0bd103f1f7b to your computer and use it in GitHub Desktop.
Save futureshocked/385b447f81d99be07c82a0bd103f1f7b to your computer and use it in GitHub Desktop.
10.1. Arduino UART receive integer oscilloscope demo sketch (Oscilloscopes for Busy People)
/* 11.1. Arduino UART receive integer oscilloscope demo sketch
*
* Use this sketch to experiment with the decoding of a single
* integer in simplex on an oscilloscope.
*
* Connect CH1 of the oscilloscope to pin 0 of the Arduino.
* Connect CH2 of the oscilloscope to pin 1 of the Arduino.
*
*
* This sketch was written for Oscilloscopes for Busy People by Peter Dalmaris.
* Find out more at https://techexplorations.com/courses/oscilloscopes/
*
* Components
* ----------
* - Arduino Uno
* - An oscilloscope (of course)
*
* Libraries
* ---------
* - NONE
*
* Connections
* -----------
*
*
*
* Other information
* -----------------
* -
* Created on September 12 2019 by Peter Dalmaris
*
*/
int counter = 0;
void setup() {
// initialize serial:
Serial.begin(9600);
}
void loop() {
Serial.println(counter, DEC);
delay(1000);
counter++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment