Difference between revisions of "Component: GLCD (EBM001) (EBM Modules)"
| Line 14: | Line 14: | ||
| ==GLCD (EBM001) component== | ==GLCD (EBM001) component== | ||
| Graphical display component designed to work with the EBM001 modules and EB084 E-blocks. Based on the ILI9163C 16-bit colour graphical controller IC. | Graphical display component designed to work with the EBM001 modules and EB084 E-blocks. Based on the ILI9163C 16-bit colour graphical controller IC. | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| ==Detailed description== | ==Detailed description== | ||
| Line 96: | Line 90: | ||
| [[File:3DFar.jpg]] | [[File:3DFar.jpg]] | ||
| + | |||
| + | |||
| Line 797: | Line 793: | ||
| | colspan="2" | Rotates the simulated canvas to match the orientation of real world hardware.  | | colspan="2" | Rotates the simulated canvas to match the orientation of real world hardware.  | ||
| |} | |} | ||
| + | |||
| + | ==Component Source Code== | ||
| + | |||
| + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_GLCD_EBM001.fcfx FC_Comp_Source_GLCD_EBM001.fcfx] | ||
| + | |||
| + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_GLCD_EBM001.fcfx FC_Comp_Source_GLCD_EBM001.fcfx] | ||
Revision as of 14:28, 1 March 2024
| Author | Matrix Ltd | 
| Version | 1.6 | 
| Category | EBM Modules | 
Contents
- 1 GLCD (EBM001) component
- 2 Detailed description
- 3 Examples
- 4 Macro reference
- 4.1 BPlot
- 4.2 BacklightOff
- 4.3 BacklightOn
- 4.4 ClearDisplay
- 4.5 DrawCircle
- 4.6 DrawEllipse
- 4.7 DrawLine
- 4.8 DrawRectangle
- 4.9 FastPlot
- 4.10 Initialise
- 4.11 Plot
- 4.12 Print
- 4.13 PrintNumber
- 4.14 ReadFontStat
- 4.15 ReadFontWidth
- 4.16 SetBackgroundColour
- 4.17 SetDisplayOrientation
- 4.18 SetFontScaler
- 4.19 SetForegroundColour
- 4.20 Window
 
- 5 Property reference
- 6 Component Source Code
GLCD (EBM001) component
Graphical display component designed to work with the EBM001 modules and EB084 E-blocks. Based on the ILI9163C 16-bit colour graphical controller IC.
Detailed description
No detailed description exists yet for this component
Examples
EBM001 Basic Example
EBM001 gLCD Example File
 EBM001 Example
Example should show the following on the display on the panel and on the hardware.
EBM001 Example
Example should show the following on the display on the panel and on the hardware.
EBM001 Maze Builder
 Maze Builder gLCD
Example to draw a randomly generated 2D maze on an EBM001 graphical display.
Maze Builder gLCD
Example to draw a randomly generated 2D maze on an EBM001 graphical display.
EBM001 Drawing 3D Objects With Perspective
 3D Manipulations
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.
3D Manipulations
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. | |
|  - UINT | X1 | 
|  - UINT | Y1 | 
|  - VOID | Return | 
BacklightOff
|   | BacklightOff | 
| Clears the backlight enable pin allowing the display backlight to switch off. Switching the backlight on and off at high speed allow the light to be dimmed. | |
|  - VOID | Return | 
BacklightOn
|   | BacklightOn | 
| Sets the backlight enable pin allowing the display backlight to switch on. Switching the backlight on and off at high speed allow the light to be dimmed. | |
|  - VOID | Return | 
ClearDisplay
|   | ClearDisplay | 
| This macro clears the display of any previous output by overwriting the entire display with the background colour. | |
|  - VOID | Return | 
DrawCircle
DrawEllipse
DrawLine
|   | DrawLine | 
| Draws a line with the current foreground colour from pixel location X1, Y1 to pixel location X2, Y2. | |
|  - UINT | X1 | 
|  - UINT | Y1 | 
|  - UINT | X2 | 
|  - UINT | Y2 | 
|  - VOID | Return | 
DrawRectangle
FastPlot
|   | FastPlot | 
| Sets a pixel with the current foreground colour at current pixel location. Not compatible with orientations other than 0. | |
|  - VOID | 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. | |
|  - VOID | Return | 
Plot
|   | Plot | 
| Sets a pixel with the current foreground colour at pixel location X, Y. | |
|  - UINT | X1 | 
|  - UINT | Y1 | 
|  - VOID | Return | 
PrintNumber
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 | 
ReadFontWidth
SetBackgroundColour
SetDisplayOrientation
SetFontScaler
SetForegroundColour
Window
|   | Window | 
| Specifies a full screen or sub window of pixels to draw. Useful when used with the FastPlot function to draw bitmaps at high speed. | |
|  - UINT | X1 | 
|  - UINT | Y1 | 
|  - UINT | X2 | 
|  - UINT | Y2 | 
|  - VOID | Return | 
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_GLCD_EBM001.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_GLCD_EBM001.fcfx














