How to use an Adafruit I2C RGB 16x2 LCD with a Raspberry Pi

Home > Search > How-to
  by

If your Adafruit I2C RGB 16x2 LCD circuit board does not come preassembled, you will need to solder the following parts onto your Adafruit I2C RGB 16x2 LCD circuit board:

  • Resistors
  • Contrast button
  • Select buttons
  • 16-bit input/output port expander
  • 8-Channel 10-Bit A/D Converter with SPI Serial Interface (item number MCP3008)
  • Adafruit RGB Negative 16x2 LCD+Keypad Kit for Raspberry Pi
  • Stacking header for Raspberry Pi

 

After connecting the Adafruit I2C RGB 16x2 LCD circuit board to your Raspberry Pi, the LCD on the Adafruit should illuminate. Also, the I2C tools package can be installed:

sudo apt-get install i2c-tools

 

Then, you can use one of these commands to ensure that the Raspberry Pi can detect the Adafruit board. "0" is used for Raspberry Pi version 1, "1" is used for Raspberry Pi version 2.

sudo i2cdetect -y 0
sudo i2cdetect -y 1

 

One of these commands produce a following output:

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: 40 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: 70 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments