Component: LCD I2C (Backpack) (Alphanumeric)
Author | Matrix Ltd |
Version | 2.2 |
Category | Alphanumeric |
Contents
LCD I2C (Backpack) component
Standard alphanumeric LCD based on a standard I2C control bus. Usually using either a PIC device or Microchip IO expander IC.
Component Source Code
Please click here for the component source code: FC_Comp_Source_LCD_I2C.fcfx
Detailed description
No detailed description exists yet for this component
Examples
A simple example that shows how to use some common functions.
If the display is not showing the expected characters, the I2c address or contrast could be wrong.
It's best to keep the jumper connected since the backlight is enabled by default.
Using an Arduino Uno the correct I2C address can be determined by using an
IC2 Address Sniffer
The I2C address to use is the one within the first set of square brackets.
For example, with my backpack display, the correct address to use is 0x3F [63]:
The other two Addresses i.e. 0x56 [86] and 0x68 [104] is for my 24C32 EEPROM and DS3231 RTC respectively.
Note The I2c addresses scan will repeat every 5seconds.
The sniffer will send data to your PC via UART to USB.
The Arduino range and clones will have it built-in.
More details on I2C can be found here,
Matrix Flowcode Blog: Simplified communications I2C and SPI
Downloadable macro reference
![]() |
Clear |
![]() |
Return |
![]() |
PrintString |
![]() |
Text |
![]() |
Return |
![]() |
PrintAscii |
Takes the ascii value for a character and prints the character | |
![]() |
character |
![]() |
Return |
![]() |
PrintNumber |
Allows you to print a number. This is limited to a signed-INT, -32768 to 32767 | |
![]() |
Number |
![]() |
Return |
![]() |
BacklightControl |
![]() |
State |
![]() |
Return |
![]() |
ClearLine |
![]() |
Line |
![]() |
Return |
![]() |
Cursor |
Moves the cursor on the LCD Display | |
![]() |
x |
![]() |
y |
![]() |
Return |
![]() |
ScrollDisplay |
Scrolls the display left or right by a number of given positions. | |
![]() |
position |
![]() |
direction |
![]() |
Return |
![]() |
Start |
Startup routine required by the hardware device. | |
![]() |
Return |