Skip to main content

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

MIT

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


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 hashes)

Uploaded Source

Built Distribution

ch340_nrf-0.1.4-py3-none-any.whl (6.4 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