|
|
| (One intermediate revision by the same user not shown) |
| Line 5: |
Line 5: |
| | |- | | |- |
| | | width="20%" style="color:gray;" | Version | | | width="20%" style="color:gray;" | Version |
| − | | 2.1 | + | | 12.0 |
| | |- | | |- |
| | | width="20%" style="color:gray;" | Category | | | width="20%" style="color:gray;" | Category |
| Line 15: |
Line 15: |
| | Standard alphanumeric LCD based on the Grove I2C LCD module with RGB backlight. | | Standard alphanumeric LCD based on the Grove I2C LCD module with RGB backlight. |
| | | | |
| − | ==Component Source Code== | + | ==Version information== |
| | | | |
| − | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_LCD_Grove_I2C.fcfx FC_Comp_Source_LCD_Grove_I2C.fcfx]
| + | Library Version, Component Version, Date, Author, Info |
| | + | 12, 12.0, 22-08-24, MW, Fixed bug within SetReg that causes compile to fail with ESP32 |
| | + | |
| | | | |
| − | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_LCD_Grove_I2C.fcfx FC_Comp_Source_LCD_Grove_I2C.fcfx]
| |
| | | | |
| | ==Detailed description== | | ==Detailed description== |
| Line 528: |
Line 529: |
| | | colspan="2" | Specifies the injector component on the panel to interact with to provide comms simulation. | | | colspan="2" | Specifies the injector component on the panel to interact with to provide comms simulation. |
| | |} | | |} |
| | + | |
| | + | ==Component Source Code== |
| | + | |
| | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_LCD_Grove_I2C.fcfx FC_Comp_Source_LCD_Grove_I2C.fcfx] |
| | + | |
| | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_LCD_Grove_I2C.fcfx FC_Comp_Source_LCD_Grove_I2C.fcfx] |
Latest revision as of 21:16, 27 January 2026
| Author
|
Matrix Ltd
|
| Version
|
12.0
|
| Category
|
Alphanumeric
|
LCD (Grove - I2C) component
Standard alphanumeric LCD based on the Grove I2C LCD module with RGB backlight.
Version information
Library Version, Component Version, Date, Author, Info
12, 12.0, 22-08-24, MW, Fixed bug within SetReg that causes compile to fail with ESP32
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
BacklightControl
|
BacklightControl
|
|
|
- BYTE
|
Red
|
|
|
- BYTE
|
Green
|
|
|
- BYTE
|
Blue
|
|
|
- VOID
|
Return
|
Clear
|
Clear
|
|
|
- VOID
|
Return
|
ClearLine
|
ClearLine
|
|
|
- BYTE
|
Line
|
|
|
- VOID
|
Return
|
Command
|
Command
|
| Use this method/macro to send a specific command to the LCD. Refer to the Matrix Multimedia EB006 datasheet for a list of supported instructions. For Non-Matrix LCD's refer to the manufacturers datasheet.
|
- BYTE
|
instruction
|
|
|
- VOID
|
Return
|
Cursor
|
Cursor
|
| Moves the cursor on the LCD Display
|
- BYTE
|
x
|
|
|
- BYTE
|
y
|
|
|
- VOID
|
Return
|
PrintAscii
|
PrintAscii
|
| Takes the ascii value for a character and prints the character
|
- BYTE
|
character
|
|
|
- VOID
|
Return
|
PrintFloat
|
PrintFloat
|
| Print a Float number rounded up to a specified amount of decimal places.
|
- FLOAT
|
Number
|
| Enter the number or variable to print to the LCD
|
- BYTE
|
DecimalPlaces
|
| Enter how many decimal places to round up to (1 - 6)
|
- VOID
|
Return
|
PrintFormattedNumber
|
PrintFormattedNumber
|
| Will allow you to print a number up to 32-bits with signed or unsigned formatting. Signed = -2147483648 to 2147483647 Unsigned = 0 to 4294967295
|
- ULONG
|
Number
|
| Enter the number or variable to print to the LCD
|
- BOOL
|
Format
|
| 0=Signed, 1=Unsigned
|
- VOID
|
Return
|
PrintNumber
|
PrintNumber
|
| Allows you to print a number. This is limited to a signed-INT, -32768 to 32767
|
- INT
|
Number
|
|
|
- VOID
|
Return
|
PrintString
|
PrintString
|
|
|
- STRING
|
Text
|
|
|
- VOID
|
Return
|
RAMWrite
|
RAMWrite
|
| Modifies the internal memory of the LCD to allow for up to 8 customised characters to be created and stored in the device memory
|
- BYTE
|
Index
|
|
|
- BYTE
|
d0
|
|
|
- BYTE
|
d1
|
|
|
- BYTE
|
d2
|
|
|
- BYTE
|
d3
|
|
|
- BYTE
|
d4
|
|
|
- BYTE
|
d5
|
|
|
- BYTE
|
d6
|
|
|
- BYTE
|
d7
|
|
|
- VOID
|
Return
|
ScrollDisplay
|
ScrollDisplay
|
| Scrolls the display left or right by a number of given positions.
|
- BYTE
|
position
|
|
|
- BYTE
|
direction
|
|
|
- VOID
|
Return
|
SetI2CAddress
|
SetI2CAddress
|
| Allows the I2C device address to be dynamically changed in software without having to re-compile. Can be called before the first Start macro or at any point after.
|
- BYTE
|
Address
|
| New I2C Device Address excluding R/W bit - Range 0 - 127
|
- VOID
|
Return
|
Start
|
Start
|
| Startup routine required by the hardware device.
|
- VOID
|
Return
|
Property reference
|
Properties
|
|
I2C Config
|
|
LCD Address
|
|
|
|
RGB Address
|
|
|
|
Alt RGB Address
|
|
|
|
Channel
|
| Channel selection
|
|
Baud Select
|
| Baud rate option selector
|
|
Baud Rate
|
| Baud rate to be used
|
|
Stop Delay
|
| On older microcontroller devices there is a potential for the I2C hardware channel to lock up if there is not a 10ms delay between an I2C stop event and the next I2C start event. Most modern microcontrollers will not have a problem so this property can be disabled to speed up the I2C communications.
|
|
Connections
|
|
SDA
|
| Pin used for SDA (data signal)
|
|
SCL
|
| Pin used for SCL (clock signal)
|
|
LCD Configuration
|
|
LCD Backlight Type
|
|
|
|
Rows
|
|
|
|
Columns
|
|
|
|
Simulation
|
|
Component Label
|
|
|
|
Component Label Scale
|
| The label scale can be change if the amout of text is too wide for the display
|
|
Text Colour
|
| Colour of the font characters drawn on the display
|
|
Text Background
|
|
|
|
Display Background
|
|
|
|
Simulate Comms
|
| Used to drive the comms durig simulation which can be used to: Data Recorder waveform generation Console Logging Data Injector to redirect the data e.g. to a SCADA slave connected to the physical hardware
|
|
Scope Traces
|
| Selects if the component pin connections are automatically generated on the data recorder window or not. Yes: Automatically add the component pins to a group on the data recorder which will reflect the sim data during simultion. No: Do not show the pin signals on the data recorder window.
|
|
Console Data
|
| Selects if the console data is automatically generated or not
|
|
API
|
| Specifies the injector component on the panel to interact with to provide comms simulation.
|
Component Source Code
Please click here to download the component source project: FC_Comp_Source_LCD_Grove_I2C.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_LCD_Grove_I2C.fcfx