getsenic / nuimo-linux-python

Nuimo Python SDK for Linux to connect and communicate with Nuimo controllers made by Senic
https://senic.com
MIT License
52 stars 20 forks source link

a few changes i needed to be able to use it #17

Closed tshirtman closed 7 years ago

tshirtman commented 7 years ago

It wasn't working with python2 (used ord() for char-> int conversion) write_matrix usage was unreliable, using async_write seems to improve things the fading feature wasn't exposed in write_matrix, so i added it. (using https://files.senic.com/nuimo-gatt-profile.pdf) the fly event didn't report the distance, so i replaced the duplication of the fly_direction (which is equivalent to event_kind) with the result of byte 4

Feedback welcome, a few things might not be readily merge-able.

tshirtman commented 7 years ago

I'm not really sure about the async write, it has the merit of preventing errors from crashing my test app, but it's not uncommon for the led displays to stop updating.