@nique
I have used the library with a FrSky X8R.
It works very well, see the test sketch below for an example I use on a Mini Pro.
The only problem with that is that I can't get any debug output, so I used a 1284 board to test as it has two hardware serial ports.
FrSky works already inverted.
Yes, and therefor you need an inverter I have tried a 74hc14 or just a transistor with two resistors
Ans I use 3.3V on the Pro Mini to avoid logic level converter
// for using mini with one serial
// change SBUS.h line 12 for normal Arduino
// #define port Serial1 --for Arduino with more than one Serial port
// #define port Serial --for normal Arduino with one Serial port
#include <FUTABA_SBUS.h>
#include <Servo.h>
FUTABA_SBUS sBus;
Servo myservo;
void setup(){
sBus.begin();
myservo.attach(14);
}
void loop(){
sBus.FeedLine();
if (sBus.toChannels == 1){
sBus.UpdateServos();
sBus.UpdateChannels();
sBus.toChannels = 0;
myservo.writeMicroseconds(sBus.channels[6]+800);
}
}