//SERIAL_8N1 protocol spec'd by external controller, 8 data bits, //one stop bit, and no parity // set this to the hardware serial port you wish to use //int t1; //int play = t1; //SERIAL_8N1 #define qBlink() (digitalWriteFast(LED_BUILTIN, !digitalReadFast(LED_BUILTIN) )) void setup() { Serial.begin(19200); pinMode(LED_BUILTIN, OUTPUT); while (!Serial && (millis () <= 2000)) { delay(120); qBlink(); // Attention - waiting for USB to connect delay(40); qBlink(); } // Serial.println("Hello World"); Serial1.begin(19200); } void loop() { //this is for me to see if the teensy has taken in the new program, LED timing changed per rev manually int incomingByte; qBlink(); delay(2000); // wait for a second //communication to external controller Serial.println("play 0"); Serial1.println("play 0"); }