1
0
mirror of https://github.com/pommi/python-itho-wpu.git synced 2024-12-21 18:43:27 +01:00
Go to file
Pim van den Berg d00e948208 feat(itho-wpu): rm slave thread + pass result to I2CMaster via a queue + add retry mechanism
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).
2020-11-08 15:08:46 +01:00
i2c_raw.py feat(itho-wpu): initial i2c master functionality 2020-10-17 18:05:56 +02:00
itho-wpu.py feat(itho-wpu): rm slave thread + pass result to I2CMaster via a queue + add retry mechanism 2020-11-08 15:08:46 +01:00
README.md docs(readme): initial commit 2020-10-16 19:17:51 +02:00

python-itho-wpu

A python library and a set of command line tools to communicate with an Itho WPU.