Created
May 30, 2015 12:16
-
-
Save jsonpoindexter/0720b4a827204301217b to your computer and use it in GitHub Desktop.
BaseBench,ino
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
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