Skip to content

Commit

Permalink
[Updated] Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Witty-Wizard committed Jul 1, 2024
1 parent 856b7ab commit ce34b69
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/atmel/ibus_basic/ibus_basic.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
#include <SerialIO.h>

ibus_channels_t channelData;
rc_channels_t channelData;

ibus receiver(&Serial);

Expand Down
7 changes: 3 additions & 4 deletions examples/espresiff/crsf_basic/crsf_basic.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
#include <SerialIO.h>
#define RX_PIN 16

crsf_channels_t channelData;
rc_channels_t channelData;

crsf receiver(&Serial1,RX_PIN);
crsf receiver(&Serial1, RX_PIN);

void setup() {
void setup() {
receiver.begin();
Serial.begin(9600);
}
Expand All @@ -25,5 +25,4 @@ void loop() {
Serial.print(channelData.channel3);
Serial.print(" Channel 4: ");
Serial.println(channelData.channel4);

}
2 changes: 1 addition & 1 deletion examples/espresiff/ibus_basic/ibus_basic.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <SerialIO.h>
#define RX_PIN 16

ibus_channels_t channelData;
rc_channels_t channelData;

ibus receiver(&Serial1,RX_PIN);

Expand Down
7 changes: 3 additions & 4 deletions examples/espresiff/sbus_basic/sbus_basic.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
#include <SerialIO.h>
#define RX_PIN 16

sbus_channels_t channelData;
rc_channels_t channelData;

sbus receiver(&Serial1,RX_PIN);
sbus receiver(&Serial1, RX_PIN);

void setup() {
void setup() {
receiver.begin();
Serial.begin(9600);
}
Expand All @@ -25,5 +25,4 @@ void loop() {
Serial.print(channelData.channel3);
Serial.print(" Channel 4: ");
Serial.println(channelData.channel4);

}

0 comments on commit ce34b69

Please sign in to comment.