Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transport driver from intel upm drivers to androidthings drivers #70

Open
ghost opened this issue Aug 29, 2017 · 1 comment
Open

transport driver from intel upm drivers to androidthings drivers #70

ghost opened this issue Aug 29, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 29, 2017

Hi,

I have this driver https://github.com/intel-iot-devkit/upm/tree/master/src/smartdrive running ok in upm sensors drivers. (I tested this with android studio, gradle, jcenter and I managed to move two engines through i2c of the smartdrive - driver.

How the manufacture of intel edison died I need transport this to androidthings drivers.

What are the steps I should take and where to get the tutorials I need?

@jdkoren
Copy link
Member

jdkoren commented Aug 29, 2017

Hello @neuberfran, you can familiarize yourself with the PIO APIs available on Android Things. It looks like your code uses I2C protocol, so I think it will port over fairly easily since you already know the register addresses and such.

This link describes the PIO protocols we support (listed on the left):
https://developer.android.com/things/sdk/pio/index.html

This link goes to the Javadoc reference for thoe APIs:
https://developer.android.com/things/reference/com/google/android/things/pio/package-summary.html

You can also look at the source for some of our drivers that use I2C, like the bmx280 and the ht16k33.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant