Python library to control microcontroller based boards by using the ArduRPC protocol.
You can find more information in the documentation.
Install
Requirements:
Python 2.7 or Python >= 3.2
Requirements (optional):
pyserial >= 2.7
Install:
Install the basic ArduRPC library.
$ pip install ardurpc
Example
The pyserial library is required to run the following example.
import ardurpc
from ardurpc.connector import Serial, UDP
# Connect to the serial port
con = Serial("/dev/ttyACM0", 9600)
# More examples:
# con = Serial("/dev/ttyUSB0", 9600)
# con = UDP(host="192.168.1.1", port=1234)
# New instance
rpc = ardurpc.ArduRPC(connector=con)
print("Version(Protocol): {0}".format(rpc.getProtocolVersion()))
print(
"Version(Library): {0}".format(
".".join([str(i) for i in rpc.getLibraryVersion()])
)
)
print(
"Available handlers: {0}".format(
", ".join(rpc.get_handler_names())
)
)
License
Published under the LGPLv3+ (see LICENSE for more information)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ardurpc-0.3.tar.gz
(9.1 kB
view details)
File details
Details for the file ardurpc-0.3.tar.gz.
File metadata
- Download URL: ardurpc-0.3.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80291f0fe6405a0d6823779c7e8de8c78755173bab9fe7a38bf357050fe037d3
|
|
| MD5 |
be0c460af4a3b20dfd0b99833d86fd64
|
|
| BLAKE2b-256 |
05bb77be4929b463c53ffb135f34b7c48b87b4bf41ab2c92cfad3a3412e42246
|