Difference between revisions of "Component: GLCD (SSD1306) I2C (SSD1306) (Graphical Monochrome)"
From Flowcode Help
Jump to navigationJump to search| Line 73: | Line 73: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
| + | |||
| + | |||
| Line 79: | Line 81: | ||
==Macro reference== | ==Macro reference== | ||
| + | ===ReadFontWidth=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 102: | Line 105: | ||
| + | ===SetFontScaler=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 125: | Line 129: | ||
| + | ===SendCommand=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 143: | Line 148: | ||
| + | ===PrintNumber=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 181: | Line 187: | ||
| + | ===DrawLine=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 214: | Line 221: | ||
| + | ===DrawEllipse=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 257: | Line 265: | ||
| + | ===Plot=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 280: | Line 289: | ||
| + | ===ControlDisplay=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 298: | Line 308: | ||
| + | ===SetDisplayOrientation=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 316: | Line 327: | ||
| + | ===BPlot=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 339: | Line 351: | ||
| + | ===ReadFontStat=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 362: | Line 375: | ||
| + | ===Print=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 400: | Line 414: | ||
| + | ===ControlContrast=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 418: | Line 433: | ||
| + | ===ClearDisplay=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 431: | Line 447: | ||
| + | ===SetBackgroundColour=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 449: | Line 466: | ||
| + | ===DrawCircle=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 487: | Line 505: | ||
| + | ===SetForegroundColour=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 505: | Line 524: | ||
| + | ===DrawRectangle=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 548: | Line 568: | ||
| + | ===Initialise=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 561: | Line 582: | ||
| + | ===InvertDisplay=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Revision as of 11:50, 3 February 2023
| Author | Matrix Ltd |
| Version | 1.9 |
| Category | Graphical Monochrome |
Contents
- 1 GLCD (SSD1306) I2C component
- 2 Component Source Code
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 ReadFontWidth
- 5.2 SetFontScaler
- 5.3 SendCommand
- 5.4 PrintNumber
- 5.5 DrawLine
- 5.6 DrawEllipse
- 5.7 Plot
- 5.8 ControlDisplay
- 5.9 SetDisplayOrientation
- 5.10 BPlot
- 5.11 ReadFontStat
- 5.12 Print
- 5.13 ControlContrast
- 5.14 ClearDisplay
- 5.15 SetBackgroundColour
- 5.16 DrawCircle
- 5.17 SetForegroundColour
- 5.18 DrawRectangle
- 5.19 Initialise
- 5.20 InvertDisplay
- 6 Property reference
GLCD (SSD1306) I2C component
Graphical display component based on the I2C version of 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.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_GLCD_SSD1306_I2C.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_GLCD_SSD1306_I2C.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
ReadFontWidth
SetFontScaler
SendCommand
| SendCommand | |
| Command | |
| Return | |
PrintNumber
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 | |
DrawEllipse
Plot
| Plot | |
| Sets a pixel with the current foreground colour at pixel location X, Y. | |
| X1 | |
| Y1 | |
| Return | |
ControlDisplay
| ControlDisplay | |
| Allows the display to be switched on and off | |
| Control | |
| 0=Off, 1=On | |
| Return | |
SetDisplayOrientation
BPlot
| BPlot | |
| Sets a pixel with the current background colour at pixel location X, Y. | |
| X1 | |
| Y1 | |
| Return | |
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 | |
ControlContrast
| ControlContrast | |
| Sets the display contrast from 0 to 255. | |
| Contrast | |
| Range 0 - 255, Default 207 | |
| Return | |
ClearDisplay
| ClearDisplay | |
| This macro clears the display of any previous output by overwriting the entire display with the background colour. | |
| Return | |
SetBackgroundColour
| SetBackgroundColour | |
| Specifies the colour of the background by creating a mixture of red, green and blue. | |
| PixelColour | |
| 0=White, 1=Black | |
| Return | |
DrawCircle
SetForegroundColour
| SetForegroundColour | |
| Specifies the colour of the foreground by creating a mixture of red, green and blue. | |
| PixelColour | |
| 0=White, 1=Black | |
| Return | |
DrawRectangle
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 | |