Closed markmcd closed 7 years ago
Although over on SO folks are saying the pico doesn't have the capacitive buttons exposed over i2c, it's over gpio. Perhaps a new sample is needed?
That's the rainbow HAT, right? Those buttons are exposed as gpio buttons. Use the RainbowHat driver and it should all be abstracted for you (compile 'com.google.android.things.contrib:driver-rainbowhat:0.4' on your build.gradle)
On Jun 7, 2017 11:36 PM, "Mark McDonald" notifications@github.com wrote:
Although over on SO https://stackoverflow.com/questions/43700289/how-can-i-initialise-a-cap12xxinputdriver-with-androidthings folks are saying the pico doesn't have the capacitive buttons exposed over i2c, it's over gpio. Perhaps a new sample is needed?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/androidthings/drivers-samples/issues/8#issuecomment-307012547, or mute the thread https://github.com/notifications/unsubscribe-auth/AA0CkjNgtCbQRHbGiwfJnpwgoRxok8-Nks5sB5ZQgaJpZM4NzoNi .
@markmcd in addition, you can also try the button sample, it should work out of the box with the button A
.
Superb, thank you!
I'm attempting to use the capacitive buttons (A/B/C), but the sample app fails to initialise:
This corresponds to this line in the activity's onCreate:
I assume it's just an invalid I2C port for the board, but I've no idea what it should be.