Allows you to use the ch340 nrf usb adapter with python. This project is currently in developement.
Project description
Warning: This project is currently in developement. Use at your own risk
Installation
pip install ch340_nrf
Usage
import ch340_nrf
import time
# Create a new instance of the ch340_nrf class
module = ch340_nrf.NRF("COM3")
# Get the system information
print(module.get_system_info())
# Send a message
module.send_message("Hello World!")
# Wait for a response
time.sleep(0.5)
# Print the response
print(module.get_message())
Reason
I made this library because there are no other libraries that allow you to use the ch340 nrf usb adapter with python. After reading the thread on the arduino forums here, I decided to make my own library. I hope this library helps you with your projects!
Dependencies
License
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
TODO
- Organize code better
- Add more documentation
- Add more examples
- Add more error handling
- Improve initialization time
- Improve reliablity
- Add async support
Thanks
Thanks for using ch340_nrf!
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
ch340_nrf-0.1.4.tar.gz
(7.4 kB
view details)
Built Distribution
File details
Details for the file ch340_nrf-0.1.4.tar.gz
.
File metadata
- Download URL: ch340_nrf-0.1.4.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f406859c57ddb4d7e4ab4109d030efcbec9e0d2d55fde63b94f63a0d209688f5 |
|
MD5 | f039a56e6c98e5f9a85b5d67fb85c765 |
|
BLAKE2b-256 | 291fc74438ce9fbc5b4761daa88d990b7a7acf16eac815098105c1c986b8b9e9 |
File details
Details for the file ch340_nrf-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: ch340_nrf-0.1.4-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37802ad54775ebf615b21674744ae48cf8c3440b45e0fe0891704d5b970f6717 |
|
MD5 | 87642fd6a655f9bc019f860e33c8bc6b |
|
BLAKE2b-256 | 914ac3d3c373b41ca13405fcb77b1a7d4b95fac5e0e3080e19a94a0c36c67189 |