Skip to main content

FlySky iBus python library for the raspberry pi.

Project description

FlySky iBus Python Library for Raspberry Pi

Description

This is a Python package named flySkyiBus to communicate with FlySky iBus protocol using a Raspberry Pi. It makes use of the pyserial package to communicate with the serial port.

Installation

This package is distributed via PyPi, and can be installed via pip. To install it, you can run:

You can also install directly from the GitHub repository by running:

pip install git+https://github.com/GamerHegi64/FlySky-Ibus.git

Dependencies

This library depends on pyserial version 3.4 or higher.

Usage

Here is a simple example of how to use this library:

from flySkyiBus import IBus

bus = IBus('/dev/serial0')  # use your serial port name here

data = bus.read()  # Read data from serial port
print(data)  # print the data read from the serial port

bus.write([1500]*14)  # Write data to the serial port, replace with your data

Please note that the write method expects a list of 14 channels each ranging between 1000 and 2000.

To-Dos

  • write tests
  • upload to pip

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flySkyiBus-1.0.0.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

flySkyiBus-1.0.0-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page