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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flySkyiBus-1.0.0.tar.gz.
File metadata
- Download URL: flySkyiBus-1.0.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e2519d37b394c03d980211cdfdb2039581b291dd40f2ef6070a20efc7fa3372
|
|
| MD5 |
3a266fd047153d7383e40cfc92d66135
|
|
| BLAKE2b-256 |
545ad24853ed29547d9f1b383bcbbff4d42624f5cb9c4b47a12c1111119df972
|
File details
Details for the file flySkyiBus-1.0.0-py3-none-any.whl.
File metadata
- Download URL: flySkyiBus-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65f74da388d9ac396ae8456cf34852f3af05bffbf28b0d29d9051633369983f0
|
|
| MD5 |
a6988abf51b2d278c98f8120ff6a58c6
|
|
| BLAKE2b-256 |
f462437b772442fde9ba2bf52de5c5d7be5cb7704d56ded11cc026a8cb0ef03c
|