leinardi/androidthings-drivers

Java sensors

Opened this issue · 1 comments

Hi,

Nice work on your Java library of sensors. You may be interested in the ones I have written for my own Java device I/O library.
See:

I'm think I should make it easier to port my code to Android Things, should be simply a matter of providing a similar I2C / SPI API.

Matt

Hi Matt, porting your code to Android Things should be relatively easy since probably you just need to provide an interface for your SPI/I2C/GPIO device classes that is then used by both your implementation and Android Things.

You can find the Android Things API documentation here: https://developer.android.com/things/reference/com/google/android/things/pio/SpiDevice.html