common:android_things:i2c_lcd

'ODROID-N2' on this page refers to the ODROID-N2 series (N2, N2+, N2L).

Android Things with I2C LCD

  • ODROID-C4
  • ODROID-N2
  • ODROID-M1
target board Device Tree Overlay config file path
ODROID-N2/C4 /odm/env.ini
ODROID-M1 /fat/config.ini

the “overlays” options must contain this values.

target
...
overlays="i2c0"
...
Pin Number Name Usage
1 3.3V LCD & AT24C32 Power
3 I2C SDA LCD & AT24C32 I2C SDA
5 I2C SCL LCD & AT24C32 I2C SCL
9 GND LCD & AT24C32 Ground
7 GPIO AT24C32 A0 address GPIO (N2/N2L)
16 GPIO AT24C32 A1 address GPIO (N2/N2L)
18 GPIO AT24C32 A2 address GPIO (N2/N2L)

Create the Project

  1. Start Android Studio & Select “Get from VCS”.
  2. Insert the repository url “https://github.com/xiane/thingsGpioExample” and clone it.

Building && Uploading

  1. Select the Lcd from Run Configurations menu.

  2. Connect otg cable to the ODROID Board.
  3. Select a target board and run.
  • common/android_things/i2c_lcd.txt
  • Last modified: 2023/08/16 16:13
  • by luke.go