Created
May 13, 2022 17:10
-
-
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
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
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