Difference between revisions of "Component: GLCD Monochrome (BL0139) (E-blocks 2)"
From Flowcode Help
Jump to navigationJump to search| Line 72: | Line 72: | ||
| ''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
| + | |||
| + | |||
| Line 77: | Line 79: | ||
| ==Macro reference== | ==Macro reference== | ||
| + | ===ReadFontWidth=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 100: | Line 103: | ||
| + | ===SetFontScaler=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 123: | Line 127: | ||
| + | ===PrintNumber=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 161: | Line 166: | ||
| + | ===DrawLine=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 194: | Line 200: | ||
| + | ===Write_Data=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 212: | Line 219: | ||
| + | ===DrawEllipse=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 255: | Line 263: | ||
| + | ===Goto_XY=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 278: | Line 287: | ||
| + | ===Plot=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 301: | Line 311: | ||
| + | ===SetDisplayOrientation=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 319: | Line 330: | ||
| + | ===BPlot=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 342: | Line 354: | ||
| + | ===ReadFontStat=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 365: | Line 378: | ||
| + | ===Print=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 403: | Line 417: | ||
| + | ===ClearDisplay=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 416: | Line 431: | ||
| + | ===SetBackgroundColour=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 434: | Line 450: | ||
| + | ===DrawCircle=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 472: | Line 489: | ||
| + | ===Write_Command=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 490: | Line 508: | ||
| + | ===SetForegroundColour=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 508: | Line 527: | ||
| + | ===DrawRectangle=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 551: | Line 571: | ||
| + | ===Initialise=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
Revision as of 11:49, 3 February 2023
| Author | Matrix TSL | 
| Version | 1.0 | 
| Category | E-blocks 2 | 
Contents
- 1 GLCD Monochrome component
- 2 Component Source Code
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 ReadFontWidth
- 5.2 SetFontScaler
- 5.3 PrintNumber
- 5.4 DrawLine
- 5.5 Write_Data
- 5.6 DrawEllipse
- 5.7 Goto_XY
- 5.8 Plot
- 5.9 SetDisplayOrientation
- 5.10 BPlot
- 5.11 ReadFontStat
- 5.12 Print
- 5.13 ClearDisplay
- 5.14 SetBackgroundColour
- 5.15 DrawCircle
- 5.16 Write_Command
- 5.17 SetForegroundColour
- 5.18 DrawRectangle
- 5.19 Initialise
 
- 6 Property reference
GLCD Monochrome component
Graphical display component designed to work with the EB2 BL0139 Downstream E-block.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_EBlocks2_Mono_GLCD_BL0139.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_EBlocks2_Mono_GLCD_BL0139.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
ReadFontWidth
SetFontScaler
PrintNumber
DrawLine
|   | DrawLine | 
| Draws a line with the current foreground colour from pixel location X1, Y1 to pixel location X2, Y2. | |
|  - BYTE | X1 | 
|  - BYTE | Y1 | 
|  - BYTE | X2 | 
|  - BYTE | Y2 | 
|  - VOID | Return | 
Write_Data
|   | Write_Data | 
|  - BYTE | data | 
|  - VOID | Return | 
DrawEllipse
Goto_XY
|   | Goto_XY | 
|  - BYTE | X | 
|  - BYTE | Y | 
|  - VOID | Return | 
Plot
|   | Plot | 
| Sets a pixel with the current foreground colour at pixel location X, Y. | |
|  - BYTE | X1 | 
|  - BYTE | Y1 | 
|  - VOID | Return | 
SetDisplayOrientation
BPlot
|   | BPlot | 
| Sets a pixel with the current background colour at pixel location X, Y. | |
|  - BYTE | X1 | 
|  - BYTE | Y1 | 
|  - VOID | Return | 
ReadFontStat
|   | ReadFontStat | 
| Gets a stat from the selected embedded ASCII font data. | |
|  - BYTE | Font | 
| Font selection range: 0 to (NumFonts - 1) | |
|  - BYTE | Index | 
| 0=SpaceWidth, 1=PixelHeight | |
|  - BYTE | Return | 
ClearDisplay
|   | ClearDisplay | 
| This macro clears the display of any previous output by overwriting the entire display with the background colour. | |
|  - VOID | Return | 
SetBackgroundColour
|   | SetBackgroundColour | 
| Specifies the colour of the foreground | |
|  - BYTE | PixelColour | 
| 0=White, 1=Black | |
|  - VOID | Return | 
DrawCircle
Write_Command
|   | Write_Command | 
|  - BYTE | Command | 
|  - VOID | Return | 
SetForegroundColour
|   | SetForegroundColour | 
| Specifies the colour of the foreground. | |
|  - BYTE | PixelColour | 
| 0=White, 1=Black | |
|  - VOID | Return | 
DrawRectangle
Initialise
|   | Initialise | 
| The Init macro must be called once to initialise the Graphical LCD display before any other Graphical LCD component macros are called. | |
|  - VOID | Return | 











