https://github.com/me-phew/simple485-remastered-micro
A MicroPython port of the simple485_remastered library for Slave devices.
https://github.com/me-phew/simple485-remastered-micro
Last synced: 3 months ago
JSON representation
A MicroPython port of the simple485_remastered library for Slave devices.
- Host: GitHub
- URL: https://github.com/me-phew/simple485-remastered-micro
- Owner: Me-Phew
- License: gpl-3.0
- Created: 2025-07-23T13:08:29.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-07-23T15:16:35.000Z (3 months ago)
- Last Synced: 2025-07-23T17:28:14.543Z (3 months ago)
- Language: Python
- Size: 25.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple 485 Remastered Micro
_A MicroPython port of the [Simple 485 Remastered](https://github.com/Me-Phew/simple485-remastered) library for slave devices._
[](https://opensource.org/licenses/MIT)
## Requirements
This port uses https://github.com/Me-Phew/micropython-logging, which is a fork of https://github.com/erikdelange/MicroPython-Logging.
It should, however, be compatible with any logging library that uses the same interface as the standard Python logging library.## Installation
Simply copy the simple485_remastered_micro.py file onto your microcontroller.### Manual Hardware Tests (`/test_scripts`)
These scripts are designed to test the library's performance and robustness on real hardware. They are essential for verifying behavior in a real-world environment with physical RS485 transceivers and wiring.
More details on how to run these tests can be found in the [CPython version repo](https://github.com/Me-Phew/simple485-remastered/blob/main/test_scripts/README.md)
## API at a Glance
There are only two main classes in this port that you need to know about for most use cases:
- **`Slave`**: The abstract base class for creating all slave devices. You must subclass it and implement `_handle_unicast_message`.
- **`ReceivedMessage`**: Represents a message received by a slave. It contains the sender's address, the message type, and the payload.## Contributing
Contributions are welcome! If you find a bug or have a feature request, please open an issue. If you'd like to contribute code, please feel free to fork the repository and submit a pull request.
## License
This project is licensed under the MIT License—see the [LICENSE](LICENSE) file for details.
## Acknowledgements
This project is inspired by the original work of [rzeman9](https://github.com/rzeman9)