We're no longer updating This wiki!!

This is an old revision of the document!


16x2 LCD + IO Shield on ODROID-C Series

  • Blue and white 16×2 Character LCD.
  • 7 x Blue LEDs
  • 2 x tact switches
  • 4 x 6pin IO port

Where to buy

LCD pins

Pin namewiringPi numExport GPIO num
C1/C1/C0+C2
LCD_RS#7#83#249
LCD_EN#0#88#247
LCD_D4#2#116#239
LCD_D5#3#115#237
LCD_D6#1#87#238
LCD_D7#4#104#236

Build the wiringPi on ubuntu

To use the LCD-IO Shield with wiringPi you build the wiringPi library first.

1. Get the wiringPi library compatible ODROID Series.

git clone https://github.com/hardkernel/wiringPi

2. Build the library

cd wiringPi
./build

Tutorials

Basic example

1. Get a source code.
example-lcd.c

wget http://dn.odroid.com/source_peripherals/16x2lcdio/example-lcd.c

2. Compile & Run

gcc -o example-lcd example-lcd.c -lwiringPi -lwiringPiDev -lpthread
sudo ./example-lcd

Display System Time

1. Get a source code.
lcd_time.c

wget http://dn.odroid.com/source_peripherals/16x2lcdio/lcd_time.c

2. Compile & Run

gcc -o lcd_time lcd_time.c -lwiringPi -lpthread
sudo ./lcd_time

Interrupt example

1. Get a source code.
wiring_isr.c

wget http://dn.odroid.com/source_peripherals/16x2lcdio/wiring_isr.c

2. Compile & Run

gcc -o wiring_isr wiring_isr.c -lwiringPi -lpthread
sudo ./wiring_isr

3. Push your SW1 on 16x2lcd board

Display sensors value with Weather-Board

en/c_lcdio.1456468955.txt.gz · Last modified: 2016/02/26 15:12 by john1117
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0