Difference between revisions of "Component: GLCD (STM32F469NI) (STM32F469NI) (Graphical Color)"
From Flowcode Help
Jump to navigationJump to search(4 intermediate revisions by 2 users not shown) | |||
Line 14: | Line 14: | ||
==GLCD (STM32F469NI) component== | ==GLCD (STM32F469NI) component== | ||
Graphical display component designed to work with the STM32F469NI Discovery board from ST. Compatible with the large display and capacitive touch input. | Graphical display component designed to work with the STM32F469NI Discovery board from ST. Compatible with the large display and capacitive touch input. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Detailed description== | ==Detailed description== | ||
+ | Information on the Fonts available for this component are available here. [[Component:_ID_1b08885c_807e_4631_930e_a4fef06159dc|GLCD Font Subcomponent]] | ||
+ | ==Examples== | ||
Line 33: | Line 29: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Line 64: | Line 45: | ||
+ | Touch screen enabled drawing demo allowing you to draw on the display using the touch screen. Compatible with the Flowcode simulation. | ||
+ | {{Fcfile|STM32F469NI_gLCD_Demo.fcfx|STM32F469NI gLCD Demo}} | ||
Line 73: | Line 56: | ||
− | |||
− | |||
− | |||
Line 580: | Line 560: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
− | |||
− | |||
Line 696: | Line 674: | ||
| 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_STM32F469NI.fcfx FC_Comp_Source_GLCD_STM32F469NI.fcfx] | ||
+ | |||
+ | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_GLCD_STM32F469NI.fcfx FC_Comp_Source_GLCD_STM32F469NI.fcfx] |
Latest revision as of 14:29, 1 March 2024
Author | MatrixTSL |
Version | 1.0 |
Category | Graphical Color |
Contents
- 1 GLCD (STM32F469NI) component
- 2 Detailed description
- 3 Examples
- 4 Macro reference
- 4.1 BPlot
- 4.2 ClearDisplay
- 4.3 DrawCircle
- 4.4 DrawEllipse
- 4.5 DrawLine
- 4.6 DrawRectangle
- 4.7 GetTouchCoordinates
- 4.8 Initialise
- 4.9 Plot
- 4.10 Print
- 4.11 PrintNumber
- 4.12 ReadFontStat
- 4.13 ReadFontWidth
- 4.14 ReadTouchCoordinates
- 4.15 SetBackgroundColour
- 4.16 SetDisplayOrientation
- 4.17 SetFontScaler
- 4.18 SetForegroundColour
- 5 Property reference
- 6 Component Source Code
GLCD (STM32F469NI) component
Graphical display component designed to work with the STM32F469NI Discovery board from ST. Compatible with the large display and capacitive touch input.
Detailed description
Information on the Fonts available for this component are available here. GLCD Font Subcomponent
Examples
Touch screen enabled drawing demo allowing you to draw on the display using the touch screen. Compatible with the Flowcode simulation.
Macro reference
BPlot
BPlot | |
Sets a pixel with the current background colour at pixel location X, Y. | |
- UINT | X1 |
- UINT | Y1 |
- 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
GetTouchCoordinates
GetTouchCoordinates | |
Reads the value of the last touchscreen input from the display. Returns a 0 if no new touch is detected. Returns a 1 if a press is detected. | |
- BYTE | 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
ReadTouchCoordinates
ReadTouchCoordinates | |
Returns the coordinates of the last touch event. Axis = 0 or 'x' or 'X' - Returns the X coordinate. Axis = 1 or 'y' or 'Y' - Returns the Y coordinate. | |
- BYTE | Axis |
- UINT | Return |
SetBackgroundColour
SetDisplayOrientation
SetFontScaler
SetForegroundColour
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_GLCD_STM32F469NI.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_GLCD_STM32F469NI.fcfx