Skip to content

Instantly share code, notes, and snippets.

@jsonpoindexter
Created May 30, 2015 12:16
Show Gist options
  • Save jsonpoindexter/0720b4a827204301217b to your computer and use it in GitHub Desktop.
Save jsonpoindexter/0720b4a827204301217b to your computer and use it in GitHub Desktop.
BaseBench,ino
void setup() {
Serial.begin(115200);
}
byte Start = 0; // start byte is dec 0
byte Stop = 1; // stop byte is dec 1
int simDelay = 100; //simulated delay code would take
int postDelay = 100; //delay after the Stop byte gets sent in order to give Processing time to be ready for next Start signal
void loop() {
Serial.write(Start);
delay(simDelay);
Serial.write(Stop);
delay(postDelay);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment