Difference between revisions of "Component: GLCD (SSD1306) Buffered (SSD1306) (Graphical Monochrome)"
From Flowcode Help
Jump to navigationJump to search| Line 194: | Line 194: | ||
|- | |- | ||
| colspan="2" | Chooses to fill with colour - 0 = Arc transparency data, 1 = Arc contains foreground colour. | | colspan="2" | Chooses to fill with colour - 0 = Arc transparency data, 1 = Arc contains foreground 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 | ||
Latest revision as of 08:57, 27 April 2026
| Author | Matrix Ltd |
| Version | 1.6 |
| Category | Graphical Monochrome |
Contents
- 1 GLCD (SSD1306) Buffered component
- 2 Version information
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 BPlot
- 5.2 ClearDisplay
- 5.3 ControlContrast
- 5.4 ControlDisplay
- 5.5 DrawArc
- 5.6 DrawBezier
- 5.7 DrawCircle
- 5.8 DrawEllipse
- 5.9 DrawLine
- 5.10 DrawRectangle
- 5.11 DrawRoundedRectangle
- 5.12 Initialise
- 5.13 InvertDisplay
- 5.14 Plot
- 5.15 Print
- 5.16 PrintNumber
- 5.17 ReadFontStat
- 5.18 ReadFontWidth
- 5.19 SendCommand
- 5.20 SetBackgroundColour
- 5.21 SetDisplayOrientation
- 5.22 SetFontScaler
- 5.23 SetForegroundColour
- 6 Property reference
- 7 Component Source Code
GLCD (SSD1306) Buffered component
Graphical display component based on the SSD1306 monochrome graphical controller IC. Functions without the use of a read pin by hosting the 1K of graphical memory using the microcontroller's RAM memory.
Version information
Library Version, Component Version, Date, Author, Info 11, 1.0, 22-07-24, BR, Added DrawArc and DrawRoundedRectangle functions
Detailed description
Click here for an in depth guide to graphical LCDs using Flowcode.
Information on the Fonts available for this component are available here. GLCD Font Subcomponent
Examples
No additional examples
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 | |
ControlContrast
| ControlContrast | |
| Sets the display contrast from 0 to 255. | |
| Contrast | |
| Range 0 - 255, Default 207 | |
| Return | |
ControlDisplay
| ControlDisplay | |
| Allows the display to be switched on and off | |
| Control | |
| 0=Off, 1=On | |
| Return | |
DrawArc
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
DrawRoundedRectangle
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 | |
InvertDisplay
| InvertDisplay | |
| Return | |
Plot
| Plot | |
| Sets a pixel with the current foreground colour at pixel location X, Y. | |
| X1 | |
| Y1 | |
| Return | |
PrintNumber
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
SendCommand
| SendCommand | |
| Command | |
| Return | |
SetBackgroundColour
| SetBackgroundColour | |
| Specifies the colour of the background by creating a mixture of red, green and blue. | |
| PixelColour | |
| 0=White, 1=Black | |
| Return | |
SetDisplayOrientation
SetFontScaler
SetForegroundColour
| SetForegroundColour | |
| Specifies the colour of the foreground by creating a mixture of red, green and blue. | |
| PixelColour | |
| 0=White, 1=Black | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_GLCD_SSD1306_buffered.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_GLCD_SSD1306_buffered.fcfx