Difference between revisions of "Unit I2CLCD"
Line 34: | Line 34: | ||
---- | ---- | ||
− | '' | + | |
+ | '''I2CLCD specific variables''' | ||
+ | |||
+ | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
+ | |- | ||
+ | | <code>I2CLCD_AUTOSTART:LongBool = True;</code> | ||
+ | | style="width: 40%;"|If True then auto start the I2CLCD device on boot | ||
+ | |- | ||
+ | |} | ||
+ | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
+ | |- | ||
+ | | <code>I2CLCD_I2C_ADDRESS:Word = $27;</code> | ||
+ | | style="width: 40%;"| | ||
+ | |- | ||
+ | |} | ||
+ | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
+ | |- | ||
+ | | <code>I2CLCD_I2C_DEVICE:String = 'I2C0';</code> | ||
+ | | style="width: 40%;"| | ||
+ | |- | ||
+ | |} | ||
+ | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
+ | |- | ||
+ | | <code>I2CLCD_LCD_WIDTH:LongWord = 16;</code> | ||
+ | | style="width: 40%;"| | ||
+ | |- | ||
+ | |} | ||
+ | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
+ | |- | ||
+ | | <code>I2CLCD_LCD_HEIGHT:LongWord = 2;</code> | ||
+ | | style="width: 40%;"| | ||
+ | |- | ||
+ | |} | ||
+ | <br /> | ||
=== Function declarations === | === Function declarations === |
Revision as of 04:52, 19 June 2021
Return to Unit Reference
Description
Generic I2C LCD Driver
Generic 16x2 or 20x4 LCD displays with an I2C interface are available from many suppliers and commonly include a Hitachi HD44780 LCD and NXP PCF8574 I/O expander to convert the I2C data into GPIO inputs for the display.
This unit combines the drivers for the HD44780 and PCF8574 to create a console device which can be used with the standard console and console window API.
Only text mode is supported as the HD44780 does not support setting individual pixels.
Some examples of generic displays that will work with the unit include the following:
https://www.amazon.com/SunFounder-Serial-Module-Display-Arduino/dp/B019K5X53O
https://www.auselectronicsdirect.com.au/2-x-16-lcd-display-module-with-i2c-interface-for-a
But you can find these units from many suppliers worldwide.
Constants
To be documented
Type definitions
To be documented
Public variables
I2CLCD specific variables
I2CLCD_AUTOSTART:LongBool = True;
|
If True then auto start the I2CLCD device on boot |
I2CLCD_I2C_ADDRESS:Word = $27;
|
I2CLCD_I2C_DEVICE:String = 'I2C0';
|
I2CLCD_LCD_WIDTH:LongWord = 16;
|
I2CLCD_LCD_HEIGHT:LongWord = 2;
|
Function declarations
To be documented
Return to Unit Reference