nilhcem / 1602a-androidthings Goto Github PK
View Code? Open in Web Editor NEW1602 LCD module driver for Android Things
License: Apache License 2.0
1602 LCD module driver for Android Things
License: Apache License 2.0
Hi @Nilhcem 🤓
I have tried to run this sample on my LCD - have managed to plug everything in. I am getting an exception when trying to run it though and I was wondering if you might be able to help.
I've double checked the circuit setup - also changed the devpreview to version 2 in app build.gradle. Do you maybe have an idea what I'm doing wrong? Have you been able to use the LCD on version 2?
Thanks!
com.nilhcem.androidthings.driver.lcd1602a E/SampleActivity: Error initializing LCD
com.google.android.things.pio.PioException: android.os.ServiceSpecificException: BCM21 driver failure
at com.google.android.things.pio.GpioImpl.setDirection(GpioImpl.java:64)
at com.nilhcem.androidthings.driver.lcd1602a.Lcd1602.<init>(Lcd1602.java:119)
at com.nilhcem.androidthings.driver.lcd1602a.Lcd1602.<init>(Lcd1602.java:77)
at com.nilhcem.androidthings.driver.lcd1602a.SampleActivity.onCreate(SampleActivity.java:27)
at android.app.Activity.performCreate(Activity.java:6662)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2599)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
Caused by: android.os.ServiceSpecificException: BCM21 driver failure
at android.os.Parcel.readException(Parcel.java:1697)
at android.os.Parcel.readException(Parcel.java:1636)
at com.google.android.things.pio.IPeripheralManagerClient$Stub$Proxy.SetGpioDirection(IPeripheralManagerClient.java:969)
at com.google.android.things.pio.GpioImpl.setDirection(GpioImpl.java:62)
at com.nilhcem.androidthings.driver.lcd1602a.Lcd1602.<init>(Lcd1602.java:119)
at com.nilhcem.androidthings.driver.lcd1602a.Lcd1602.<init>(Lcd1602.java:77)
at com.nilhcem.androidthings.driver.lcd1602a.SampleActivity.onCreate(SampleActivity.java:27)
at android.app.Activity.performCreate(Activity.java:6662)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2599)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.