Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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