Page 1 of 1

I2C_LCD1602_Demo Fail to open I2C device

Posted: Sat May 04, 2019 1:39 am
by hoang1127
When runing I2C_LCD1602_Demo, It canot open I2C port and show error message
Fail to open I2C device
Here is the code https://github.com/friendlyarm/friendly ... D1602_Demo
What can be the error? Do I have to setup hardware or connection for I2C to run the demo?

Re: I2C_LCD1602_Demo Fail to open I2C device

Posted: Sat May 04, 2019 8:43 am
by v8dave
hoang1127 wrote:
When runing I2C_LCD1602_Demo, It canot open I2C port and show error message
Fail to open I2C device
Here is the code https://github.com/friendlyarm/friendly ... D1602_Demo
What can be the error? Do I have to setup hardware or connection for I2C to run the demo?


The standard libraries from FriendlyArm require you to build the apk with the platform keys. This is because the ports are protected. You need a custom Android build and make them available to user access. See my other post to you on how to do this.