This library decoding transmitted data from FlySky i6 (not tested) or FlySky i6x (tested). The used reciever when testing library is FlySky FS-A8S.
Default library supported 10 channels.
git clone https://github.com/utkudarilmaz/FlySkyiBus
mv FlySkyiBus <arduino-ide>/libraries/
Then import the library to source code.
#include "FlySkyiBus.h"
FlySkyiBus iBus(2,2); //rx and tx pins
void setup() {
Serial.begin(115200);
iBus.begin(115200);
}
void loop() {
iBus.read_serial();
Serial.println(iBus::get_channel(2)); // Channel number [0-9]
}
Normally iBus supported 14 channels communication.
If you need more channels, edit the CHANNEL_SIZE macro on the FlySkyiBus.h header file.