This is an old revision of the document!
Table of Contents
16x2 LCD + IO Shield on ODROID-C Series
LCD pins
Pin name | Export GPIO num | wiringPi num |
---|---|---|
LCD_RS | #249 | 7 |
LCD_EN | #247 | 0 |
LCD_D4 | #239 | 2 |
LCD_D5 | #237 | 3 |
LCD_D6 | #238 | 1 |
LCD_D7 | #236 | 4 |
Use to LCD with wiringPi on ubuntu
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
wget http://dn.odroid.com/source_peripherals/16x2lcdio/example-lcd.c gcc -o example-lcd example-lcd.c -lwiringPi -lwiringPiDev -lpthread sudo ./example-lcd
Display System Time
wget http://dn.odroid.com/source_peripherals/16x2lcdio/lcd_time.c gcc -o lcd_time lcd_time.c -lwiringPi -lpthread sudo ./lcd_time
Interrupt example
wget http://dn.odroid.com/source_peripherals/16x2lcdio/wiring_isr.c gcc -o wiring_isr wiring_isr.c -lwiringPi -lpthread
Push your SW1 on 16x2lcd board
sudo ./wiring_isr