Skip to content

Instantly share code, notes, and snippets.

@chris-schmitz
Created May 17, 2019 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chris-schmitz/14a7f00ad1efbc86463161f78f508f04 to your computer and use it in GitHub Desktop.
Save chris-schmitz/14a7f00ad1efbc86463161f78f508f04 to your computer and use it in GitHub Desktop.
Trying to get two Trinket M0s to talk to each other
char state[10];
void setup()
{
Serial.begin(9600);
}
void loop()
{
Serial.println("reading bytes");
Serial.readBytes(state, 10);
Serial.println(state);
delay(1000);
}
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