Difference between revisions of "Component: LCD I2C (Backpack) ()"
From Flowcode Help
Jump to navigationJump to searchLine 35: | Line 35: | ||
+ | A simple example that shows how to use some common functions. | ||
+ | {{Fcfile|Backpack_LCD_Example.fcfx|Backpack LCD Example}} | ||
+ | If the display is not showing the expected characters, the I2c address or contrast could be wrong. | ||
+ | The correct I2C address can be determined by using an {{Fcfile|IC2_Address_Sniffer_v2.fcfx|IC2 Address Sniffer}} | ||
+ | The I2C address to use is the one within square brackets on the far right. | ||
+ | For example, with my backpack display, the correct address to use is 39: | ||
+ | [[File:Sniffer_I2C_backpack_address.png]] | ||
− | + | the sniffer will send data to your PC via UART to USB. | |
+ | The Arduino range and clones will have it built-in | ||
==Downloadable macro reference== | ==Downloadable macro reference== |
Revision as of 09:19, 1 March 2022
Author | Matrix Ltd |
Version | 2.2 |
Category |
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 Pack
DISPLAYS
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.
The correct I2C address can be determined by using an
IC2 Address Sniffer
The I2C address to use is the one within square brackets on the far right.
For example, with my backpack display, the correct address to use is 39:
the sniffer will send data to your PC via UART to USB.
The Arduino range and clones will have it built-in
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 |