Created
May 17, 2019 17:58
-
-
Save chris-schmitz/14a7f00ad1efbc86463161f78f508f04 to your computer and use it in GitHub Desktop.
Trying to get two Trinket M0s to talk to each other
This file contains 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
char state[10]; | |
void setup() | |
{ | |
Serial.begin(9600); | |
} | |
void loop() | |
{ | |
Serial.println("reading bytes"); | |
Serial.readBytes(state, 10); | |
Serial.println(state); | |
delay(1000); | |
} |
This file contains 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
char state[10] = "hello"; | |
void setup() | |
{ | |
Serial.begin(9600); | |
} | |
void loop() | |
{ | |
Serial.write(state, 5); | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment