raw i2c I/O #353
raw i2c I/O #353
Comments
|
This is not difficult. Just requires duplicating a bunch of a hooks from Lua. The main issue is in The easiest solution would be to force the user the send everything as a sequence of bytes (so they will have to do the bitshifting in lua if it's a 16bit destination). The current lua interface (https://github.com/monome/crow/blob/main/lua/ii.lua#L34) has When it comes to doing an ii get, I don't know how this would work? The current implementation is:
We could just piggyback on this function by checking if //////////// So yeah. This is not difficult, just an afternoon of typing & testing if someone wants it. |
For debugging and developing other I2C devices, or general experimentation, it would be useful to expose a Lua API for handling raw bytes and arbitrary addresses. Seems fine if there's an 8 byte limit or whatever.
The text was updated successfully, but these errors were encountered: