Skip to content

Commit

Permalink
space
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Freed committed Sep 10, 2023
1 parent d22c9e5 commit b523cfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/SerialSendBundle/SerialSendBundle.ino
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void loop(){
//BOSCBundle's add' returns the OSCMessage so the message's 'add' can be composed together
bndl.add("/analog/0").add((int32_t)analogRead(0));
bndl.add("/analog/1").add((int32_t)analogRead(1));
bndl.add("/digital/5").add((digitalRead(5)==HIGH)?"HIGH":"LOW");
bndl.add("/digital/5").add((digitalRead(5)==HIGH));


SLIPSerial.beginPacket();
Expand All @@ -39,7 +39,7 @@ void loop(){
bndl.add("/mouse/step").add((int32_t)analogRead(0)).add((int32_t)analogRead(1));
bndl.add("/units").add("pixels");
SLIPSerial.beginPacket();
bndl.send(SLIPSerial); // send the bytes to the SLIP stream
bndl.send(SLIPSerial); // send the bytes to the SLIP stream
SLIPSerial.endPacket(); // mark the end of the OSC Packet
bndl.empty(); // empty the bundle to free room for a new one

Expand Down

0 comments on commit b523cfb

Please sign in to comment.