mirror of
https://github.com/pommi/python-itho-wpu.git
synced 2024-11-14 12:42:15 +01:00
3e712217d0
Remove the slave thread, set_callback already spawns a thread. I2CSlave.callback() now puts the result (if valid) in a queue. This item can be picked up by I2CMaster for further processing. I2CMaster will wait 0.21s for a result in the queue. 0.21s, because I always see a response in < 0.2s. If there is no result, it will send the request again (max 20 retries). This is because I don't get reliable responses (via pigpiod?). In an earlier commit I mentioned to configure pigpiod with -s 2 (sample rate 2 microseconds). This doesn't seem to be true. For example -s 10 gives the same reliability (and less CPU usage by pigpiod). |
||
---|---|---|
i2c_raw.py | ||
itho-wpu.py | ||
README.md |
python-itho-wpu
A python library and a set of command line tools to communicate with an Itho WPU.