working python connection, though too much data right now, too slow connection

This commit is contained in:
Eric Teunis de Boone 2017-01-30 23:04:55 +01:00
parent 7fbc7230dc
commit c1e6c76ca2
3 changed files with 58 additions and 4 deletions

View file

@ -67,12 +67,18 @@ void setup() {
delay(500);
layout(tick);
calcMaxTicks();
while(!Serial);
}
void loop() {
// print the string when a newline arrives:
// print the string when a newline arrives:
if (stringComplete) {
setFromSerial( inputString );
// clear the string:
inputString = "";
stringComplete = false;
}
layout(tick++);
if ( tick > maxticks ) tick = 0;