• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomepcDuinoArduino-ish ProgramI2CI2C 16×2 LCD on pcDuino
Previous Next

I2C 16×2 LCD on pcDuino

Posted by: admin , April 28, 2014

[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.

图9-8[/vc_column_text][vc_tabs][vc_tab title=”Wiring Diagram” tab_id=”1398716709-1-23″][vc_column_text]We wire in the following way:

  1. SCL of 16×2 LCD module to SCL of pcDuino
  2. SDA of 16×2 LCD module to SDA of pcDuino
  3.  VCC of LCD module to +5V of pcDuino
  4.  GND of LCD module to Ground of pcDuino

 

The front view:

图9-9-2

 

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

I2CLCD_1

I2CLCD_2

I2CLCD_3

I2CLCD_4

I2CLCD_5

 

Now, we can see there is display on the screen of the 16×2 LCD:

图9-9-1

[/vc_column_text][/vc_tab][/vc_tabs][/vc_column][/vc_row]

Tags: I2C

Share!
Tweet

admin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors