added serial comm and parsing bool into array

This commit is contained in:
sam
2023-11-22 16:42:50 +01:00
parent ac2983da6f
commit 55a6726f59
2 changed files with 74 additions and 5 deletions

View File

@@ -68,9 +68,7 @@ void loop() {
boolPause = true;
}
String inputOutput = String("[") + boolUp + "," + boolRight + "," + boolDown + "," + boolLeft + "," + boolDodge + "," + boolPause + "]\n";
if (inputOutput) {
Serial.println(inputOutput);
}
String Jsarray = String("[") + boolUp + "," + boolRight + "," + boolDown + "," + boolLeft + "," + boolDodge + "," + boolPause + "]\n";
Serial.print(Jsarray);
}