Difference between revisions of "Component: GLCD Base (Graphical Library)"
Line 17: | Line 17: | ||
==Version information== | ==Version information== | ||
− | + | ReadFontWidth | |
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | Ev_Timer | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | SetFontScaler | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | PrintNumber | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | Ev_Initialise | ||
+ | |||
+ | command | ||
+ | |||
+ | DrawLine | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | Plot | ||
+ | |||
+ | command | ||
+ | |||
+ | DrawEllipse | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | FastPlot | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | DrawArc | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | SetDisplayOrientation | ||
+ | |||
+ | command | ||
+ | |||
+ | Ev_Property | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | FBPlot | ||
+ | |||
+ | command | ||
+ | |||
+ | BPlot | ||
+ | |||
+ | command | ||
+ | |||
+ | Prv_Init_Display | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | Window | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | ReadFontStat | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | Print | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | Ev_AddVar | ||
+ | |||
+ | command | ||
+ | |||
+ | Ev_PropertyEx | ||
+ | |||
+ | command | ||
+ | |||
+ | ClearDisplay | ||
+ | |||
+ | command | ||
+ | |||
+ | SetBackgroundColour | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | DrawCircle | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | Ev_AddHeader | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | Ev_Resize | ||
+ | |||
+ | command | ||
+ | |||
+ | Ev_CompileStart | ||
+ | |||
+ | command | ||
+ | |||
+ | ReadFontByte | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | DrawRoundedRectangle | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | SetForegroundColour | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | Ev_Start | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | DrawRectangle | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | Main | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | comment | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | command | ||
+ | |||
+ | maincommand | ||
+ | |||
+ | Ev_Click | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | Initialise | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | command | ||
+ | |||
+ | FPlot | ||
+ | |||
+ | command | ||
==Detailed description== | ==Detailed description== | ||
Line 170: | Line 596: | ||
[[File:3DFar.jpg]] | [[File:3DFar.jpg]] | ||
+ | |||
+ | |||
Revision as of 11:24, 14 June 2024
Author | Matrix Ltd |
Version | 3.1 |
Category | Graphical Library |
Contents
- 1 GLCD Base component
- 2 Version information
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 BPlot
- 5.2 ClearDisplay
- 5.3 DrawArc
- 5.4 DrawCircle
- 5.5 DrawEllipse
- 5.6 DrawLine
- 5.7 DrawRectangle
- 5.8 DrawRoundedRectangle
- 5.9 FastPlot
- 5.10 Initialise
- 5.11 Plot
- 5.12 Print
- 5.13 PrintNumber
- 5.14 ReadFontByte
- 5.15 ReadFontStat
- 5.16 ReadFontWidth
- 5.17 SetBackgroundColour
- 5.18 SetDisplayOrientation
- 5.19 SetFontScaler
- 5.20 SetForegroundColour
- 5.21 Window
- 6 Property reference
- 7 Component Source Code
GLCD Base component
Base graphical LCD with simulation only interface to allow graphics to be drawn in simulation. Suitable for inheriting to simplify the creation of further graphical LCD components.
Version information
ReadFontWidth
command
command
command
command
command
command
command
Ev_Timer
command
command
SetFontScaler
command
command
PrintNumber
command
command
Ev_Initialise
command
DrawLine
command
command
command
command
command
command
command
Plot
command
DrawEllipse
command
command
command
FastPlot
command
command
DrawArc
command
command
SetDisplayOrientation
command
Ev_Property
command
command
command
command
command
command
command
command
FBPlot
command
BPlot
command
Prv_Init_Display
command
command
command
command
Window
command
command
ReadFontStat
command
command
command
command
command
command
command
command
command
command
command
command
command
command
command
command
Ev_AddVar
command
Ev_PropertyEx
command
ClearDisplay
command
SetBackgroundColour
command
command
DrawCircle
command
command
command
Ev_AddHeader
command
command
command
command
command
Ev_Resize
command
Ev_CompileStart
command
ReadFontByte
command
command
command
command
command
command
DrawRoundedRectangle
command
command
command
SetForegroundColour
command
command
Ev_Start
command
command
command
command
DrawRectangle
command
command
command
command
command
command
Main
command
maincommand
comment
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
command
maincommand
Ev_Click
command
command
command
command
command
Initialise
command
command
command
command
FPlot
command
Detailed description
Font sizes
Standard Fonts
0 = Normal
1 = 2 x Width
2 = 2 x Width and 2 x Height
3 = 2 x Height
Extended Fonts
4 = 2 x Width and 3 x Height
5 = 2 x Width and 4 x Height
6 = 2 x Width and 5 x Height
7 = 2 x Width and 6 x Height
8 = 3 x width
9 = 3 x Width and 2 x Height
10 = 3 x Width and 3 x Height
11 = 3 x Width and 4 x Height
12 = 3 x Width and 5 x Height
13 = 3 x Width and 6 x Height
14 = 4 x width
15 = 4 x Width and 2 x Height
16 = 4 x Width and 3 x Height
17 = 4 x Width and 4 x Height
18 = 4 x Width and 5 x Height
19 = 4 x Width and 6 x Height
20 = 5 x width
21 = 5 x Width and 2 x Height
22 = 5 x Width and 3 x Height
23 = 5 x Width and 4 x Height
24 = 5 x Width and 5 x Height
25 = 5 x Width and 6 x Height
26 = 6 x width
27 = 6 x Width and 2 x Height
28 = 6 x Width and 3 x Height
29 = 6 x Width and 4 x Height
30 = 6 x Width and 5 x Height
31 = 6 x Width and 6 x Height
Examples
EBM001 Basic Example
EBM001 gLCD Example File
Example should show the following on the display on the panel and on the hardware.
EBM001 Maze Builder
Example to draw a randomly generated 2D maze on an EBM001 graphical display.
EBM001 Drawing 3D Objects With Perspective
Example should show the following on the display on the panel and on the hardware. The two switches allow you to move closer to or away from the object. The perspective provides more and more distortion to the object the closer you get.
Macro reference
BPlot
![]() |
BPlot |
Sets a pixel with the current background colour at pixel location X, Y. | |
![]() |
X1 |
![]() |
Y1 |
![]() |
Return |
ClearDisplay
![]() |
ClearDisplay |
This macro clears the display of any previous output by overwriting the entire display with the background colour. | |
![]() |
Return |
DrawArc
DrawCircle
DrawEllipse
DrawLine
![]() |
DrawLine |
Draws a line with the current foreground colour from pixel location X1, Y1 to pixel location X2, Y2. | |
![]() |
X1 |
![]() |
Y1 |
![]() |
X2 |
![]() |
Y2 |
![]() |
Return |
DrawRectangle
DrawRoundedRectangle
FastPlot
![]() |
FastPlot |
Sets a pixel with the current foreground colour at current pixel location. | |
![]() |
Return |
Initialise
![]() |
Initialise |
The Init macro must be called once to initialise the Graphical LCD display before any other Graphical LCD component macros are called. | |
![]() |
Return |
Plot
![]() |
Plot |
Sets a pixel with the current foreground colour at pixel location X, Y. | |
![]() |
X1 |
![]() |
Y1 |
![]() |
Return |
PrintNumber
ReadFontByte
ReadFontStat
![]() |
ReadFontStat |
Gets a stat from the selected embedded ASCII font data. | |
![]() |
Font |
Font selection range: 0 to (NumFonts - 1) | |
![]() |
Index |
0=SpaceWidth, 1=PixelHeight | |
![]() |
Return |
ReadFontWidth
SetBackgroundColour
SetDisplayOrientation
SetFontScaler
![]() |
SetFontScaler |
![]() |
ScaleX |
![]() |
ScaleY |
![]() |
Return |
SetForegroundColour
Window
![]() |
Window |
Specifies a specific window in the pixels to draw to. | |
![]() |
X1 |
![]() |
Y1 |
![]() |
X2 |
![]() |
Y2 |
![]() |
Return |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_GLCD_base.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_GLCD_base.fcfx