/FlySkyiBus

FlySky iBus protocol decoder library for Arduino.

Primary LanguageC++MIT LicenseMIT

FlySky iBus Decoder Library

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.

Usage

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]
}

Hacking Library

Normally iBus supported 14 channels communication.

If you need more channels, edit the CHANNEL_SIZE macro on the FlySkyiBus.h header file.