From 0959f2626fa19f8f609801129b389c81becfa2b1 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Thu, 28 Nov 2024 00:57:41 +0300 Subject: [PATCH] Fix SBUS example --- examples/SBUS/SBUS.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/SBUS/SBUS.ino b/examples/SBUS/SBUS.ino index 9c549a9..7c95b09 100644 --- a/examples/SBUS/SBUS.ino +++ b/examples/SBUS/SBUS.ino @@ -1,8 +1,9 @@ #include -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(); } @@ -13,4 +14,5 @@ void loop() { Serial.print(data.ch[i]); Serial.print(" "); } + Serial.println(); }