Java sensors
Opened this issue · 1 comments
mattjlewis commented
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:
- https://github.com/mattjlewis/diozero/tree/master/diozero-core/src/main/java/com/diozero/devices
- https://github.com/mattjlewis/diozero/tree/master/diozero-imu-devices/src/main/java/com/diozero/imu/drivers/invensense
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
leinardi commented
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