Provides many useful command lines in python
Project description
hawksoft.serialPortComm package
Provides a comm thread which send and receive bytes from serial port. The main thread can communicate with comm thread by send and receive fucntion.
I also provides an pyknow knowledge library to control traffic lights.
Installation:
pip install hawksoft.serialPortComm
usage:
from hawksoft import comm
comm.start('COM1',9600)
...
frames = comm.receive()
...
comm.send(b'\x01\x02')
...
comm.close()
To test the knowledge library, type command as follows:
trafficLights
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
Close
Hashes for hawksoft.serialPortComm-2.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9caf693a5cd776b57d100bf9fca5317e8bc4f7f0761c06e94f7a17c5a10934ee |
|
MD5 | ab2cf621a8e18271c88f8255d3a6d7fe |
|
BLAKE2b-256 | 0576b5db63edb8032e29b703e1b93bfd6111c9bc46a5e3441c351a282fda17dc |