androidthings-drivers icon indicating copy to clipboard operation
androidthings-drivers copied to clipboard

Java sensors

Open mattjlewis opened this issue 7 years ago • 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:

  • 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

mattjlewis avatar Jan 20 '18 16:01 mattjlewis

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

leinardi avatar Jan 20 '18 17:01 leinardi