[vc_row][vc_column width=”1/1″][vc_column_text]In this tutorial, we are going to use Arduino style API library to interface to an I2C 16×2 LCD.
[/vc_column_text][vc_tabs][vc_tab title=”Wiring Diagram” tab_id=”1398716709-1-23″][vc_column_text]We wire in the following way:
- SCL of 16×2 LCD module to SCL of pcDuino
- SDA of 16×2 LCD module to SDA of pcDuino
- VCC of LCD module to +5V of pcDuino
- GND of LCD module to Ground of pcDuino
The front view:
Back view:
There is a switch on the pack of the backpack, we need to move it to I2C mode.[/vc_column_text][/vc_tab][vc_tab title=”Programming” tab_id=”1398716709-2-31″][vc_column_text]Launch LX terminal, and install git by typing “$sudo apt-get install github” if there is no git install on pcDuino.
Then we download the c_environment library from github by:
$git clone https://github.com/pcduino/c_environment
Now, we can see there is display on the screen of the 16×2 LCD:
[/vc_column_text][/vc_tab][/vc_tabs][/vc_column][/vc_row]
Leave a Reply
You must be logged in to post a comment.