Difference between revisions of "Component: GLCD (EB075) (E-blocks 1)"
From Flowcode Help
Jump to navigationJump to search| (3 intermediate revisions by the same user not shown) | |||
| Line 15: | Line 15: | ||
Graphical display component designed to work with the Goldelox range of displays from 4D Systems. Also available in the form of the EB075 GLCD E-block. | Graphical display component designed to work with the Goldelox range of displays from 4D Systems. Also available in the form of the EB075 GLCD E-block. | ||
| − | == | + | ==Version information== |
| − | + | Library Version, Component Version, Date, Author, Info | |
| − | + | 11, 1.0, 22-07-24, BR, Added DrawArc and DrawRoundedRectangle functions | |
| − | |||
==Detailed description== | ==Detailed description== | ||
| Line 77: | Line 76: | ||
[[File:EB075.jpg]] | [[File:EB075.jpg]] | ||
| + | |||
| + | |||
| + | |||
| + | |||
| Line 120: | Line 123: | ||
| colspan="2" | This macro clears the display of any previous output by overwriting the entire display with the background colour. | | colspan="2" | This macro clears the display of any previous output by overwriting the entire display with the background colour. | ||
|- | |- | ||
| + | |- | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| + | |} | ||
| + | |||
| + | |||
| + | ===DrawBezier=== | ||
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawBezier''' | ||
| + | |- | ||
| + | | colspan="2" | Draws a quadratic Bezier curve with the current foreground colour from pixel location X0, Y0 to pixel location X2, Y2 using control point CX, CY. | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT | ||
| + | | width="90%" | X0 | ||
| + | |- | ||
| + | | colspan="2" | Start X coordinate | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT | ||
| + | | width="90%" | Y0 | ||
| + | |- | ||
| + | | colspan="2" | Start Y coordinate | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT | ||
| + | | width="90%" | CX | ||
| + | |- | ||
| + | | colspan="2" | Control point X coordinate | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT | ||
| + | | width="90%" | CY | ||
| + | |- | ||
| + | | colspan="2" | Control point Y coordinate | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT | ||
| + | | width="90%" | X2 | ||
| + | |- | ||
| + | | colspan="2" | End X coordinate | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT | ||
| + | | width="90%" | Y2 | ||
| + | |- | ||
| + | | colspan="2" | End Y coordinate | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT | ||
| + | | width="90%" | Resolution | ||
| + | |- | ||
| + | | colspan="2" | Number of segments to approximate the curve, 0 chooses an automatic value based on curve size. | ||
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
| Line 743: | Line 795: | ||
| colspan="2" | Simulation data source used to allow the component to connect to various remote devices Nothing - Simulation data is ignored COM port - Routes the communication data to and from a physical or virtual COM port Injector - Routes the communication data via a data injector component on the Panel. | | colspan="2" | Simulation data source used to allow the component to connect to various remote devices Nothing - Simulation data is ignored COM port - Routes the communication data to and from a physical or virtual COM port Injector - Routes the communication data via a data injector component on the Panel. | ||
|} | |} | ||
| + | |||
| + | ==Component Source Code== | ||
| + | |||
| + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_GLCD_4D_EB075.fcfx FC_Comp_Source_GLCD_4D_EB075.fcfx] | ||
| + | |||
| + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_GLCD_4D_EB075.fcfx FC_Comp_Source_GLCD_4D_EB075.fcfx] | ||
Latest revision as of 08:57, 27 April 2026
| Author | Matrix Ltd |
| Version | 2.0 |
| Category | E-blocks 1 |
Contents
- 1 GLCD (EB075) component
- 2 Version information
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 BPlot
- 5.2 ClearDisplay
- 5.3 DrawBezier
- 5.4 DrawCircle
- 5.5 DrawEllipse
- 5.6 DrawLine
- 5.7 DrawRectangle
- 5.8 FastPlot
- 5.9 G4D_DisplayImageFromCard
- 5.10 G4D_DisplayVideoFromCard
- 5.11 G4D_InitialiseCard
- 5.12 G4D_ReadJoystickGoldelox
- 5.13 Initialise
- 5.14 Plot
- 5.15 Print
- 5.16 PrintNumber
- 5.17 SetBackgroundColour
- 5.18 SetForegroundColour
- 5.19 Window
- 6 Property reference
- 7 Component Source Code
GLCD (EB075) component
Graphical display component designed to work with the Goldelox range of displays from 4D Systems. Also available in the form of the EB075 GLCD E-block.
Version information
Library Version, Component Version, Date, Author, Info 11, 1.0, 22-07-24, BR, Added DrawArc and DrawRoundedRectangle functions
Detailed description
No detailed description exists yet for this component
Examples
EB075 gLCD Example File
EB075 Example
Example should show the following on the display on the panel and on the hardware.
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 | |
DrawBezier
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
FastPlot
| FastPlot | |
| Sets a pixel with the current foreground colour at current pixel location. Not compatible with orientations other than 0. | |
| Return | |
G4D_DisplayImageFromCard
G4D_DisplayVideoFromCard
G4D_InitialiseCard
G4D_ReadJoystickGoldelox
| G4D_ReadJoystickGoldelox | |
| Reads the value of the joystick input. 0 = No press detected / 1 = Up Pressed / 2 = Left Pressed / 3 = Down Pressed / 4 = Right Pressed / 5 = Fire Pressed | |
| 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
SetBackgroundColour
SetForegroundColour
Window
| Window | |
| X1 | |
| Y1 | |
| X2 | |
| Y2 | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_GLCD_4D_EB075.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_GLCD_4D_EB075.fcfx
