Skip to content

Commit

Permalink
Fix SBUS example
Browse files Browse the repository at this point in the history
  • Loading branch information
okalachev committed Nov 27, 2024
1 parent 5bad8fe commit 0959f26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/SBUS/SBUS.ino
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#include <SBUS.h>

SBUS RC(Serial2, true); // Using Serial2, software inversion enabled
SBUS RC(Serial2); // Using signal pin 4, software inversion enabled

void setup() {
Serial.begin(115200);
RC.begin();
}

Expand All @@ -13,4 +14,5 @@ void loop() {
Serial.print(data.ch[i]);
Serial.print(" ");
}
Serial.println();
}

0 comments on commit 0959f26

Please sign in to comment.