Jump to content

Component: Matrix Cap Touch Display (Development): Difference between revisions

From Flowcode Help
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable""
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder""
 
(4 intermediate revisions by the same user not shown)
Line 103: Line 103:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''BluetoothConnectionStatus'''
| width="90%" class="mtx-class-macrohead" | '''BluetoothConnectionStatus'''
|-
|-
| colspan="2" | Checks to see if the Bluetooth is connected to a master device 
| colspan="2" | Checks to see if the Bluetooth is connected to a master device 
Line 117: Line 117:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''BluetoothInit'''
| width="90%" class="mtx-class-macrohead" | '''BluetoothInit'''
|-
|-
| colspan="2" | Startup up Bluetooth communications and assigns a friendly name  
| colspan="2" | Startup up Bluetooth communications and assigns a friendly name  
Line 136: Line 136:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''BluetoothReceiveArray'''
| width="90%" class="mtx-class-macrohead" | '''BluetoothReceiveArray'''
|-
|-
| colspan="2" | Read an array of bytes from the Bluetooth connection Returns the number of bytes read from the file 
| colspan="2" | Read an array of bytes from the Bluetooth connection Returns the number of bytes read from the file 
Line 160: Line 160:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''BluetoothSendArray'''
| width="90%" class="mtx-class-macrohead" | '''BluetoothSendArray'''
|-
|-
| colspan="2" | Send an array of bytes via Bluetooth 
| colspan="2" | Send an array of bytes via Bluetooth 
Line 184: Line 184:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''BluetoothUninit'''
| width="90%" class="mtx-class-macrohead" | '''BluetoothUninit'''
|-
|-
| colspan="2" | Shots down Bluetooth communications  
| colspan="2" | Shots down Bluetooth communications  
Line 198: Line 198:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ClearDisplay'''
| width="90%" class="mtx-class-macrohead" | '''ClearDisplay'''
|-
|-
| colspan="2" | Clears the display and resets the button count 
| colspan="2" | Clears the display and resets the button count 
Line 212: Line 212:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawArc'''
| width="90%" class="mtx-class-macrohead" | '''DrawArc'''
|-
|-
| colspan="2" | Draws an arc either as an outline or as a filled object. 
| colspan="2" | Draws an arc either as an outline or as a filled object. 
Line 266: Line 266:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawBitmap'''
| width="90%" class="mtx-class-macrohead" | '''DrawBitmap'''
|-
|-
| colspan="2" | Draws a bitmap image loaded from the SD card FileInit must be called first to ensure the File System is setup. 
| colspan="2" | Draws a bitmap image loaded from the SD card FileInit must be called first to ensure the File System is setup. 
Line 310: Line 310:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawButton'''
| width="90%" class="mtx-class-macrohead" | '''DrawButton'''
|-
|-
| colspan="2" | Draws a button or slider that can be touched  
| colspan="2" | Draws a button or slider that can be touched  
Line 369: Line 369:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawEllipse'''
| width="90%" class="mtx-class-macrohead" | '''DrawEllipse'''
|-
|-
| colspan="2" | Draws a ellipse centered around X,Y with radius X2,Y2  
| colspan="2" | Draws a ellipse centered around X,Y with radius X2,Y2  
Line 413: Line 413:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawGraph'''
| width="90%" class="mtx-class-macrohead" | '''DrawGraph'''
|-
|-
| colspan="2" | Draws a line graph area on the display with or without grids. Uses the current foreground / background colours 
| colspan="2" | Draws a line graph area on the display with or without grids. Uses the current foreground / background colours 
Line 502: Line 502:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawLine'''
| width="90%" class="mtx-class-macrohead" | '''DrawLine'''
|-
|-
| colspan="2" | Draws a single pixel thickness line 
| colspan="2" | Draws a single pixel thickness line 
Line 536: Line 536:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawPixel'''
| width="90%" class="mtx-class-macrohead" | '''DrawPixel'''
|-
|-
| colspan="2" | Draws a single pixel in the foreground colour at X,Y 
| colspan="2" | Draws a single pixel in the foreground colour at X,Y 
Line 560: Line 560:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawQRCode'''
| width="90%" class="mtx-class-macrohead" | '''DrawQRCode'''
|-
|-
| colspan="2" | Draws a QR code with the specified data string embedded. Default size for the QR code is 33 x 33 @ a scaler of 1. Can be used to store up to 78 characters Recommend a scaler of 3 or 4. QR code should be drawn with a decent clear border around it to make it easier to scan.  
| colspan="2" | Draws a QR code with the specified data string embedded. Default size for the QR code is 33 x 33 @ a scaler of 1. Can be used to store up to 78 characters Recommend a scaler of 3 or 4. QR code should be drawn with a decent clear border around it to make it easier to scan.  
Line 594: Line 594:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawRectangle'''
| width="90%" class="mtx-class-macrohead" | '''DrawRectangle'''
|-
|-
| colspan="2" | Draws a rectangle from X1,Y1 to X2,Y2  
| colspan="2" | Draws a rectangle from X1,Y1 to X2,Y2  
Line 638: Line 638:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawRoundedRectangle'''
| width="90%" class="mtx-class-macrohead" | '''DrawRoundedRectangle'''
|-
|-
| colspan="2" | Draws a rectangle with rounded corners 
| colspan="2" | Draws a rectangle with rounded corners 
Line 687: Line 687:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawString'''
| width="90%" class="mtx-class-macrohead" | '''DrawString'''
|-
|-
| colspan="2" | Draws a string at the specified location in the specified font 
| colspan="2" | Draws a string at the specified location in the specified font 
Line 731: Line 731:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FileCreate'''
| width="90%" class="mtx-class-macrohead" | '''FileCreate'''
|-
|-
| colspan="2" | Creates an empty file on the file system  
| colspan="2" | Creates an empty file on the file system  
Line 750: Line 750:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FileDelete'''
| width="90%" class="mtx-class-macrohead" | '''FileDelete'''
|-
|-
| colspan="2" | Deletes a file from the file system  
| colspan="2" | Deletes a file from the file system  
Line 769: Line 769:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FileInit'''
| width="90%" class="mtx-class-macrohead" | '''FileInit'''
|-
|-
| colspan="2" | Starts up the FAT file system access function for the SD card 0=OK 
| colspan="2" | Starts up the FAT file system access function for the SD card 0=OK 
Line 783: Line 783:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FileOpen'''
| width="90%" class="mtx-class-macrohead" | '''FileOpen'''
|-
|-
| colspan="2" | Opens a file ready for reading or writing  
| colspan="2" | Opens a file ready for reading or writing  
Line 802: Line 802:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FileReadArray'''
| width="90%" class="mtx-class-macrohead" | '''FileReadArray'''
|-
|-
| colspan="2" | Read an array of bytes from the current open file Returns the number of bytes read from the file 
| colspan="2" | Read an array of bytes from the current open file Returns the number of bytes read from the file 
Line 826: Line 826:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FileWriteArray'''
| width="90%" class="mtx-class-macrohead" | '''FileWriteArray'''
|-
|-
| colspan="2" | Write an array of bytes to the current open file 
| colspan="2" | Write an array of bytes to the current open file 
Line 850: Line 850:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FolderOpen'''
| width="90%" class="mtx-class-macrohead" | '''FolderOpen'''
|-
|-
| colspan="2" | Navigates the current directory to a folder We can use ",," to go up a level or "root" to go back to the root. 
| colspan="2" | Navigates the current directory to a folder We can use ",," to go up a level or "root" to go back to the root. 
Line 869: Line 869:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetAPIVersion'''
| width="90%" class="mtx-class-macrohead" | '''GetAPIVersion'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 883: Line 883:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetCardPresent'''
| width="90%" class="mtx-class-macrohead" | '''GetCardPresent'''
|-
|-
| colspan="2" | Checks to see if a SD card is inserted 1=Card Present, 0=No Card Present 
| colspan="2" | Checks to see if a SD card is inserted 1=Card Present, 0=No Card Present 
Line 897: Line 897:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetLastButtonPress'''
| width="90%" class="mtx-class-macrohead" | '''GetLastButtonPress'''
|-
|-
| colspan="2" | Gets the button index of the last valid button press. 255 = No new touch detected 
| colspan="2" | Gets the button index of the last valid button press. 255 = No new touch detected 
Line 911: Line 911:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetLastRawTouchCoordinate'''
| width="90%" class="mtx-class-macrohead" | '''GetLastRawTouchCoordinate'''
|-
|-
| colspan="2" | Gets the coordinates of the last touch. -1 = no new touch data available. 
| colspan="2" | Gets the coordinates of the last touch. -1 = no new touch data available. 
Line 930: Line 930:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetSliderValue'''
| width="90%" class="mtx-class-macrohead" | '''GetSliderValue'''
|-
|-
| colspan="2" | Gets the value of one of the slider buttons 
| colspan="2" | Gets the value of one of the slider buttons 
Line 949: Line 949:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise'''
| width="90%" class="mtx-class-macrohead" | '''Initialise'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 963: Line 963:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ListenForTouch'''
| width="90%" class="mtx-class-macrohead" | '''ListenForTouch'''
|-
|-
| colspan="2" | Enables a screen touch to interrupt the microcontroller using a UART RX interrupt. The master microcontroller must call this function and then enable UART RX interrupt. 
| colspan="2" | Enables a screen touch to interrupt the microcontroller using a UART RX interrupt. The master microcontroller must call this function and then enable UART RX interrupt. 
Line 987: Line 987:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetBackgroundColour'''
| width="90%" class="mtx-class-macrohead" | '''SetBackgroundColour'''
|-
|-
| colspan="2" | Sets the background draw colour 
| colspan="2" | Sets the background draw colour 
Line 1,016: Line 1,016:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetBacklightBrightness'''
| width="90%" class="mtx-class-macrohead" | '''SetBacklightBrightness'''
|-
|-
| colspan="2" | Sets the brightness of the backlight 
| colspan="2" | Sets the brightness of the backlight 
Line 1,035: Line 1,035:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetBitmapTransparencyColour'''
| width="90%" class="mtx-class-macrohead" | '''SetBitmapTransparencyColour'''
|-
|-
| colspan="2" | Sets the RGB colour to use as a transparent mask when drawing bitmaps 
| colspan="2" | Sets the RGB colour to use as a transparent mask when drawing bitmaps 
Line 1,064: Line 1,064:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetButtonIntervalPeriod'''
| width="90%" class="mtx-class-macrohead" | '''SetButtonIntervalPeriod'''
|-
|-
| colspan="2" | Sets the button repress interval in steps of 10ms  
| colspan="2" | Sets the button repress interval in steps of 10ms  
Line 1,083: Line 1,083:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetColourPallet'''
| width="90%" class="mtx-class-macrohead" | '''SetColourPallet'''
|-
|-
| colspan="2" | Sets the colour pallet for drawing buttons 
| colspan="2" | Sets the colour pallet for drawing buttons 
Line 1,162: Line 1,162:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetFontScaler'''
| width="90%" class="mtx-class-macrohead" | '''SetFontScaler'''
|-
|-
| colspan="2" | Sets the brightness of the backlight 
| colspan="2" | Sets the brightness of the backlight 
Line 1,186: Line 1,186:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetForegroundColour'''
| width="90%" class="mtx-class-macrohead" | '''SetForegroundColour'''
|-
|-
| colspan="2" | Sets the foreground draw colour 
| colspan="2" | Sets the foreground draw colour 
Line 1,215: Line 1,215:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetGraphData'''
| width="90%" class="mtx-class-macrohead" | '''SetGraphData'''
|-
|-
| colspan="2" | Draws a line graph area on the display with or without grids. Uses the current foreground / background colours 
| colspan="2" | Draws a line graph area on the display with or without grids. Uses the current foreground / background colours 
Line 1,244: Line 1,244:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetOrientation'''
| width="90%" class="mtx-class-macrohead" | '''SetOrientation'''
|-
|-
| colspan="2" | Sets the display orientation 
| colspan="2" | Sets the display orientation 
Line 1,263: Line 1,263:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetSliderValue'''
| width="90%" class="mtx-class-macrohead" | '''SetSliderValue'''
|-
|-
| colspan="2" | Sets the value of one of the slider buttons 
| colspan="2" | Sets the value of one of the slider buttons 
Line 1,287: Line 1,287:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''UpdateButtonText'''
| width="90%" class="mtx-class-macrohead" | '''UpdateButtonText'''
|-
|-
| colspan="2" | Redraws the selected button with the new text 
| colspan="2" | Redraws the selected button with the new text 
Line 1,311: Line 1,311:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''UpdateButtonTheme'''
| width="90%" class="mtx-class-macrohead" | '''UpdateButtonTheme'''
|-
|-
| colspan="2" | Redraws the selected button in a new theme 
| colspan="2" | Redraws the selected button in a new theme 
Line 1,335: Line 1,335:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WifiAcceptClose'''
| width="90%" class="mtx-class-macrohead" | '''WifiAcceptClose'''
|-
|-
| colspan="2" | Stops incoming socket requests from being accepted 
| colspan="2" | Stops incoming socket requests from being accepted 
Line 1,349: Line 1,349:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WifiAcceptOpen'''
| width="90%" class="mtx-class-macrohead" | '''WifiAcceptOpen'''
|-
|-
| colspan="2" | Allows incoming socket requests to be accepted 
| colspan="2" | Allows incoming socket requests to be accepted 
Line 1,363: Line 1,363:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WifiConnectToSSID'''
| width="90%" class="mtx-class-macrohead" | '''WifiConnectToSSID'''
|-
|-
| colspan="2" | Connects to a remote WIFI network 
| colspan="2" | Connects to a remote WIFI network 
Line 1,387: Line 1,387:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WifiCreateAccessPoint'''
| width="90%" class="mtx-class-macrohead" | '''WifiCreateAccessPoint'''
|-
|-
| colspan="2" | Creates a local access point 
| colspan="2" | Creates a local access point 
Line 1,421: Line 1,421:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WifiDisconnect'''
| width="90%" class="mtx-class-macrohead" | '''WifiDisconnect'''
|-
|-
| colspan="2" | Disconnect from the current socket 
| colspan="2" | Disconnect from the current socket 
Line 1,435: Line 1,435:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WifiInit'''
| width="90%" class="mtx-class-macrohead" | '''WifiInit'''
|-
|-
| colspan="2" | Startup up WIFI communications  
| colspan="2" | Startup up WIFI communications  
Line 1,449: Line 1,449:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WifiReadIP'''
| width="90%" class="mtx-class-macrohead" | '''WifiReadIP'''
|-
|-
| colspan="2" | Collects the IP address from the WIFI as a string. 
| colspan="2" | Collects the IP address from the WIFI as a string. 
Line 1,463: Line 1,463:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WifiReceiveArray'''
| width="90%" class="mtx-class-macrohead" | '''WifiReceiveArray'''
|-
|-
| colspan="2" | Read an array of bytes from the WIFI connection Returns the number of bytes read from the file 
| colspan="2" | Read an array of bytes from the WIFI connection Returns the number of bytes read from the file 
Line 1,487: Line 1,487:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WifiScan'''
| width="90%" class="mtx-class-macrohead" | '''WifiScan'''
|-
|-
| colspan="2" | Scans the WIFI network and returns the number of networks detected 
| colspan="2" | Scans the WIFI network and returns the number of networks detected 
Line 1,501: Line 1,501:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WifiScanEncryptionMode'''
| width="90%" class="mtx-class-macrohead" | '''WifiScanEncryptionMode'''
|-
|-
| colspan="2" | Collects the encryption mode from one of the results of the Scan. 0=Open, 1=WEP, 2=WPA_PSK, 3=WPA2_PSK, 4=WPA_WPA2_PSK 
| colspan="2" | Collects the encryption mode from one of the results of the Scan. 0=Open, 1=WEP, 2=WPA_PSK, 3=WPA2_PSK, 4=WPA_WPA2_PSK 
Line 1,520: Line 1,520:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WifiScanSSID'''
| width="90%" class="mtx-class-macrohead" | '''WifiScanSSID'''
|-
|-
| colspan="2" | Collects the SSID network name from one of the results of the Scan. 
| colspan="2" | Collects the SSID network name from one of the results of the Scan. 
Line 1,539: Line 1,539:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WifiScanSigStrength'''
| width="90%" class="mtx-class-macrohead" | '''WifiScanSigStrength'''
|-
|-
| colspan="2" | Collects the signal strength from one of the results of the Scan 
| colspan="2" | Collects the signal strength from one of the results of the Scan 
Line 1,558: Line 1,558:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WifiSendArray'''
| width="90%" class="mtx-class-macrohead" | '''WifiSendArray'''
|-
|-
| colspan="2" | Send an array of bytes via WIFI 
| colspan="2" | Send an array of bytes via WIFI 
Line 1,582: Line 1,582:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WifiSocketClose'''
| width="90%" class="mtx-class-macrohead" | '''WifiSocketClose'''
|-
|-
| colspan="2" | Close a socket 
| colspan="2" | Close a socket 
Line 1,596: Line 1,596:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WifiSocketConnect'''
| width="90%" class="mtx-class-macrohead" | '''WifiSocketConnect'''
|-
|-
| colspan="2" | Connect to a remote socket 
| colspan="2" | Connect to a remote socket 
Line 1,620: Line 1,620:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WifiSocketListen'''
| width="90%" class="mtx-class-macrohead" | '''WifiSocketListen'''
|-
|-
| colspan="2" | Listens to a socket for incoming data 
| colspan="2" | Listens to a socket for incoming data 
Line 1,639: Line 1,639:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WifiSocketOpen'''
| width="90%" class="mtx-class-macrohead" | '''WifiSocketOpen'''
|-
|-
| colspan="2" | Opens a socket 
| colspan="2" | Opens a socket 
Line 1,653: Line 1,653:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WifiUninit'''
| width="90%" class="mtx-class-macrohead" | '''WifiUninit'''
|-
|-
| colspan="2" | Shots down Wifi communications  
| colspan="2" | Shots down Wifi communications  
Line 1,668: Line 1,668:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
| width="90%" class="mtx-class-macrohead" | '''Properties'''  
|-
|-
|-
|-
Line 1,682: Line 1,682:
| colspan="2" | Amount of time to wait for each return byte 
| colspan="2" | Amount of time to wait for each return byte 
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Connections
| width="90%" class="mtx-class-propfolder" | Connections
|-
|-
|-
|-
Line 1,711: Line 1,711:
| colspan="2" | Allows the hardware receive pin to be configured from a list of available pins based on your target device, 
| colspan="2" | Allows the hardware receive pin to be configured from a list of available pins based on your target device, 
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation
| width="90%" class="mtx-class-propfolder" | Simulation
|-
|-
|-
|-

Latest revision as of 14:36, 13 July 2026

Author Matrix TSL
Version 1.0
Category Development


Matrix Cap Touch Display component

A component to drive the capacitive touch display module as used in EM, 3PH PSU, CNC

Detailed description

No detailed description exists yet for this component

Examples

Auto Detect Port Number

This example auto detects and opens a COM Port based on preassigned USB Identifiers VID/PID.

For a known device the VID and PID can be found via Windows device manager.

Auto Detect Example







Macro reference

BluetoothConnectionStatus

BluetoothConnectionStatus
Checks to see if the Bluetooth is connected to a master device 
- BOOL Return


BluetoothInit

BluetoothInit
Startup up Bluetooth communications and assigns a friendly name  
- STRING Name
Friendly device name 
- VOID Return


BluetoothReceiveArray

BluetoothReceiveArray
Read an array of bytes from the Bluetooth connection Returns the number of bytes read from the file 
- BYTE Data
 
- UINT Count
 
- UINT Return


BluetoothSendArray

BluetoothSendArray
Send an array of bytes via Bluetooth 
- BYTE Data
 
- UINT Count
 
- VOID Return


BluetoothUninit

BluetoothUninit
Shots down Bluetooth communications  
- VOID Return


ClearDisplay

ClearDisplay
Clears the display and resets the button count 
- VOID Return


DrawArc

DrawArc
Draws an arc either as an outline or as a filled object. 
- UINT X1
Center X coordinate 
- UINT Y1
Center Y coordinate 
- UINT Radius
Radius, distance of edge from the centre coordinates 
- UINT StartAngle
Angle to start drawing, in degrees 
- UINT EndAngle
Angle to end drawing, in degrees 
- UINT Resolution
Number of lines to draw from the center to the outer edge, 0=Autofill 
- BYTE Transparent
Chooses the transparency - 0 = Arc contains background colour, 1 = Arc contains previous pixel data. 
- BYTE Solid
Chooses to fill with colour - 0 = Arc transparency data, 1 = Arc contains foreground colour. 
- VOID Return


DrawBitmap

DrawBitmap
Draws a bitmap image loaded from the SD card FileInit must be called first to ensure the File System is setup. 
- STRING Filename
Text label to draw on the button 
- UINT X1
 
- UINT Y1
 
- BYTE Transparency
Set the button type 
- BYTE Orientation
 
- BYTE Flip
 
- BYTE Return


DrawButton

DrawButton
Draws a button or slider that can be touched  
- UINT X
 
- UINT Y
 
- UINT Width
 
- UINT Height
 
- BYTE Type
Set the button type: 0=Rect, 1=RoundRect, 2=Ellipse, 3=Bitmap, 4=VSlider, 5=HSlider, 6=RVSlider, 7=RHSlider 
- BYTE Font
Range: 0-3 
- BYTE ThemeIndex
 
- STRING Text
Text label to draw on the button 
- BYTE SliderMode
0=HighlightOnly, 1=Highlight and Lowlight 
- BYTE Return


DrawEllipse

DrawEllipse
Draws a ellipse centered around X,Y with radius X2,Y2  
- UINT X1
 
- UINT Y1
 
- UINT Width
 
- UINT Height
 
- BOOL Transparent
When Solid=0 - 0 = Fill with Background / 1 = No Fill 
- BOOL Solid
0=Foreground for the outline only, 1=Fill with foreground 
- VOID Return


DrawGraph

DrawGraph
Draws a line graph area on the display with or without grids. Uses the current foreground / background colours 
- UINT X
X coordinate for top left of graph 
- UINT Y
Y coordinate for top left of graph 
- UINT Width
Width of graph in pixels 
- UINT Height
Height of graph in pixels 
- INT MinX
Minimum X Value - XY type only 
- INT MaxX
Minimum X Value - XY type only 
- INT MinY
Minimum Y Value 
- INT MaxY
Maximum Y Value 
- BYTE Type
0=Scrolling, 1=XY 
- BYTE NumPoints
Number of points per line - Scrolling Type Only 
- BYTE ThemeIndex
 
- BYTE XMajor
Major subdivisions count 
- BYTE XMinor
Minor subdivisions count 
- BYTE YMajor
Major subdivisions count 
- BYTE YMinor
Minor subdivisions count 
- VOID Return


DrawLine

DrawLine
Draws a single pixel thickness line 
- UINT X1
 
- UINT Y1
 
- UINT X2
 
- UINT Y2
 
- VOID Return


DrawPixel

DrawPixel
Draws a single pixel in the foreground colour at X,Y 
- UINT X1
 
- UINT Y1
 
- VOID Return


DrawQRCode

DrawQRCode
Draws a QR code with the specified data string embedded. Default size for the QR code is 33 x 33 @ a scaler of 1. Can be used to store up to 78 characters Recommend a scaler of 3 or 4. QR code should be drawn with a decent clear border around it to make it easier to scan.  
- UINT X
Left hand side pixel coordinate 
- UINT Y
Top side pixel coordinate 
- BYTE Scaler
Size of each block in pixels 
- STRING Text
Data to embed into the QR code. e.g. "www.flowcode.co.uk/EM" 
- VOID Return


DrawRectangle

DrawRectangle
Draws a rectangle from X1,Y1 to X2,Y2  
- UINT X1
 
- UINT Y1
 
- UINT Width
 
- UINT Height
 
- BOOL Transparent
When Solid=0 - 0 = Fill with Background / 1 = No Fill 
- BOOL Solid
0=Foreground for the outline only, 1=Fill with foreground 
- VOID Return


DrawRoundedRectangle

DrawRoundedRectangle
Draws a rectangle with rounded corners 
- UINT X1
 
- UINT Y1
 
- UINT Width
 
- UINT Height
 
- UINT Radius
 
- BYTE Transparent
Chooses the transparency of the box - 0 = Box contains background colour, 1 = Box contains previous pixel data. 
- BYTE Solid
Chooses to fill the box with colour - 0 = Box contains transparency data, 1 = Box contains foreground colour. 
- VOID Return


DrawString

DrawString
Draws a string at the specified location in the specified font 
- UINT X1
 
- UINT Y1
 
- STRING Data
 
- BYTE Font
 
- BOOL Transparent
0=Draw background, 1=Do not draw background 
- BYTE Align
0=Left, 1=Center, 2=Right 
- VOID Return


FileCreate

FileCreate
Creates an empty file on the file system  
- STRING Filename
Text label to draw on the button 
- BYTE Return


FileDelete

FileDelete
Deletes a file from the file system  
- STRING Filename
Text label to draw on the button 
- BYTE Return


FileInit

FileInit
Starts up the FAT file system access function for the SD card 0=OK 
- BYTE Return


FileOpen

FileOpen
Opens a file ready for reading or writing  
- STRING Filename
Text label to draw on the button 
- BYTE Return


FileReadArray

FileReadArray
Read an array of bytes from the current open file Returns the number of bytes read from the file 
- BYTE Data
 
- UINT Count
 
- UINT Return


FileWriteArray

FileWriteArray
Write an array of bytes to the current open file 
- BYTE Data
 
- UINT Count
 
- VOID Return


FolderOpen

FolderOpen
Navigates the current directory to a folder We can use ",," to go up a level or "root" to go back to the root. 
- STRING Filename
Text label to draw on the button 
- BYTE Return


GetAPIVersion

GetAPIVersion
 
- UINT Return


GetCardPresent

GetCardPresent
Checks to see if a SD card is inserted 1=Card Present, 0=No Card Present 
- BOOL Return


GetLastButtonPress

GetLastButtonPress
Gets the button index of the last valid button press. 255 = No new touch detected 
- BYTE Return


GetLastRawTouchCoordinate

GetLastRawTouchCoordinate
Gets the coordinates of the last touch. -1 = no new touch data available. 
- INT XY
 
- VOID Return


GetSliderValue

GetSliderValue
Gets the value of one of the slider buttons 
- BYTE ButtonID
the ID of the slider button you want to read 
- FLOAT Return


Initialise

Initialise
 
- VOID Return


ListenForTouch

ListenForTouch
Enables a screen touch to interrupt the microcontroller using a UART RX interrupt. The master microcontroller must call this function and then enable UART RX interrupt. 
- UINT State
0=Off, 1=On 
- BOOL ButtonOnly
0=All Touches, 1=Buttons/Sliders only 
- VOID Return


SetBackgroundColour

SetBackgroundColour
Sets the background draw colour 
- BYTE R
 
- BYTE G
 
- BYTE B
 
- VOID Return


SetBacklightBrightness

SetBacklightBrightness
Sets the brightness of the backlight 
- BYTE Brightness
0=Off, 255=Max 
- VOID Return


SetBitmapTransparencyColour

SetBitmapTransparencyColour
Sets the RGB colour to use as a transparent mask when drawing bitmaps 
- BYTE R
 
- BYTE G
 
- BYTE B
 
- VOID Return


SetButtonIntervalPeriod

SetButtonIntervalPeriod
Sets the button repress interval in steps of 10ms  
- UINT Period
Multiple of 10ms, default 50 = 500ms 
- VOID Return


SetColourPallet

SetColourPallet
Sets the colour pallet for drawing buttons 
- BYTE ThemeIndex
Range: 0 to 9 
- BYTE ForegroundR
 
- BYTE ForegroundG
 
- BYTE ForegroundB
 
- BYTE BackgroundR
 
- BYTE BackgroundG
 
- BYTE BackgroundB
 
- BYTE HighlightR
 
- BYTE HighlightG
 
- BYTE HighlightB
 
- BYTE LowLightR
 
- BYTE LowLightG
 
- BYTE LowLightB
 
- VOID Return


SetFontScaler

SetFontScaler
Sets the brightness of the backlight 
- BYTE XScaler
Width Multiplier Range: 1 to x 
- BYTE YScaler
Height Multiplier Range: 1 to x 
- VOID Return


SetForegroundColour

SetForegroundColour
Sets the foreground draw colour 
- BYTE R
 
- BYTE G
 
- BYTE B
 
- VOID Return


SetGraphData

SetGraphData
Draws a line graph area on the display with or without grids. Uses the current foreground / background colours 
- BYTE TraceIndex
Range: 0-5 Max 6 traces 
- INT X
X value - XY Graph Type Only 
- INT Y
Y value 
- VOID Return


SetOrientation

SetOrientation
Sets the display orientation 
- BYTE Orientation
Range: 0 - 3 
- VOID Return


SetSliderValue

SetSliderValue
Sets the value of one of the slider buttons 
- BYTE ButtonID
the ID of the slider button you want to read 
- FLOAT Value
Range: 0 to 1 
- VOID Return


UpdateButtonText

UpdateButtonText
Redraws the selected button with the new text 
- BYTE ButtonIndex
Range: 0 to NumButtons -1 
- STRING Text
 
- VOID Return


UpdateButtonTheme

UpdateButtonTheme
Redraws the selected button in a new theme 
- BYTE ButtonIndex
Range: 0 to NumButtons -1 
- BYTE ThemeIndex
Range: 0 to 9 
- VOID Return


WifiAcceptClose

WifiAcceptClose
Stops incoming socket requests from being accepted 
- VOID Return


WifiAcceptOpen

WifiAcceptOpen
Allows incoming socket requests to be accepted 
- BYTE Return


WifiConnectToSSID

WifiConnectToSSID
Connects to a remote WIFI network 
- STRING SSID
Text label to draw on the button 
- STRING Password
 
- BYTE Return


WifiCreateAccessPoint

WifiCreateAccessPoint
Creates a local access point 
- STRING SSID
Text label to draw on the button 
- STRING Password
 
- BYTE Channel
Range 1-14 
- BYTE Encryption
Range 0-4 - 0=Open, 1=WEP, 2=WPAPSK, 2=WPA2PSK 3=WPAWPA2PSK 
- BYTE Return


WifiDisconnect

WifiDisconnect
Disconnect from the current socket 
- VOID Return


WifiInit

WifiInit
Startup up WIFI communications  
- VOID Return


WifiReadIP

WifiReadIP
Collects the IP address from the WIFI as a string. 
- STRING Return


WifiReceiveArray

WifiReceiveArray
Read an array of bytes from the WIFI connection Returns the number of bytes read from the file 
- BYTE Data
 
- UINT Count
 
- UINT Return


WifiScan

WifiScan
Scans the WIFI network and returns the number of networks detected 
- BYTE Return


WifiScanEncryptionMode

WifiScanEncryptionMode
Collects the encryption mode from one of the results of the Scan. 0=Open, 1=WEP, 2=WPA_PSK, 3=WPA2_PSK, 4=WPA_WPA2_PSK 
- BYTE Index
Range: 0 - (Num Returned By WifiSSIDScan) - 1 
- BYTE Return


WifiScanSSID

WifiScanSSID
Collects the SSID network name from one of the results of the Scan. 
- BYTE Index
Range: 0 - (Num Returned By WifiSSIDScan) - 1 
- STRING Return


WifiScanSigStrength

WifiScanSigStrength
Collects the signal strength from one of the results of the Scan 
- BYTE Index
Range: 0 - (Num Returned By WifiSSIDScan) - 1 
- INT Return


WifiSendArray

WifiSendArray
Send an array of bytes via WIFI 
- BYTE Data
 
- UINT Count
 
- VOID Return


WifiSocketClose

WifiSocketClose
Close a socket 
- VOID Return


WifiSocketConnect

WifiSocketConnect
Connect to a remote socket 
- STRING Address
 
- UINT Port
 
- BYTE Return


WifiSocketListen

WifiSocketListen
Listens to a socket for incoming data 
- UINT Port
 
- BYTE Return


WifiSocketOpen

WifiSocketOpen
Opens a socket 
- BYTE Return


WifiUninit

WifiUninit
Shots down Wifi communications  
- VOID Return


Property reference

Properties
Rx Retry Count
Number of times to retry and collect a reply from the display 
Rx Timeout
Amount of time to wait for each return byte 
Connections
Channel
UART Channel selector Software channels are bit banged using generic I/O pins but are not as reliable as hardware channels. Hardware channels use the selected peripheral on-board the target microcontroller. 
TX
Pin to be used for Transmit data 
TX Remap Pin
Allows the hardware transmit pin to be configured from a list of available pins based on your target device, 
RX
Pin to be used for Receive data 
RX Remap Pin
Allows the hardware receive pin to be configured from a list of available pins based on your target device, 
Simulation
Simulation Type
 
COM Port
Lists all the current available COM port hardware on your PC. 

Component Source Code

Please click here to download the component source project: FC_Comp_Source_CapTouchDIsplay.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_CapTouchDIsplay.fcfx