Skip to content

Instantly share code, notes, and snippets.

@iani
Created May 13, 2022 17:10
Show Gist options
  • Save iani/bc31f91cfeda6c0d1866d7275eca678e to your computer and use it in GitHub Desktop.
Save iani/bc31f91cfeda6c0d1866d7275eca678e to your computer and use it in GitHub Desktop.
Write some integers to serial port to test how they are read in SuperCollider
int testval;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
testval = 1;
Serial.write(testval);
delay(1000);
testval = -1;
delay(1000);
Serial.write(testval);
delay(1000);
testval = 123456;
Serial.write(testval);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment