accessory:sensor:weather-board:c:16x2lcd

WEATHER-BOARD with 16x2 LCD on ODROID-C1/C1+/C2

Pin NumberNet NameExport Number
C0/C1/C1+C2C4
3I2CA.SDA74205493
5I2CA.SCL75206494
Pin NumberNet NameExport Number
C0/C1/C1+C2C4
27I2CB.SDA76207474
28I2CB.SCL77208475

This guide is tested on Ubuntu 16.04(kernel C1-3.10.104, C2-3.14.79).

Add I2C module

target
$ sudo modprobe aml_i2c
$ ls /dev/i2c-*

To always load the kernel module on boot up, run the following command.

target
$ echo "aml_i2c" | sudo tee -a /etc/modules
target
$ sudo apt-get install git
$ git clone https://github.com/hardkernel/WEATHER-BOARD.git
$ cd WEATHER-BOARD/c_weather
$ make

Check your I2C node, and run the program.

target
$ sudo ./weather_board

or

target
$ sudo ./weather_board /dev/i2c-2

  • accessory/sensor/weather-board/c/16x2lcd.txt
  • Last modified: 2020/04/24 09:52
  • by luke.go