Difference between revisions of "Component: MIAC NXT / ECU (MIAC Module)"
From Flowcode Help
Jump to navigationJump to search (Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix TSL |- | width="20%" style="color:gray;" | Version | 1.1 |- | width="20%" style="color:gray...") |
|||
Line 20: | Line 20: | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
''No detailed description exists yet for this component'' | ''No detailed description exists yet for this component'' | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
Line 359: | Line 363: | ||
|- | |- | ||
| colspan="2" | Enter the text or variable to print to the display | | colspan="2" | Enter the text or variable to print to the display | ||
+ | |- | ||
+ | | 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'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| 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;" | '''Print''' | ||
+ | |- | ||
+ | | colspan="2" | This macro prints a string of characters to the Graphical LCD. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING | ||
+ | | width="90%" | Str | ||
+ | |- | ||
+ | | colspan="2" | String of characters to send to the display. | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT | ||
+ | | width="90%" | X1 | ||
+ | |- | ||
+ | | colspan="2" | X pixel coordinate to set the output string position. | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT | ||
+ | | width="90%" | Y1 | ||
+ | |- | ||
+ | | colspan="2" | Y pixel coordinate to set the output string position. | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" | Font | ||
+ | |- | ||
+ | | colspan="2" | Selects which Font to use Range: 0 to Font Count | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" | Transparent | ||
+ | |- | ||
+ | | colspan="2" | Specifies if the background of the text is drawn - 0 = Background colour is drawn, 1 = Background colour not drawn. | ||
|- | |- | ||
| 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 |
Revision as of 14:42, 16 January 2023
Author | Matrix TSL |
Version | 1.1 |
Category | MIAC Module |
Contents
MIAC NXT / ECU component
Component to drive the MIAC NXT / MIAC ECU range of hardware.
Component Source Code
Please click here for the component source code: FC_Comp_Source_MIAC_NXT_Component_Source.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
![]() |
DisplayPrintFloat |
Prints a formatted floating point number to the display | |
![]() |
Number |
![]() |
DecimalPoints |
Number of decimal points to display | |
![]() |
Return |
![]() |
DisplayGetCursorPosition |
Gets the current pixel position of the cursor within the coordinate space | |
![]() |
Axis |
0=X, 1=Y | |
![]() |
Return |
![]() |
ReadUSBConnected |
Checks to see if there is an active USB cable connected to the MIAC. Returns 1 if there is a USB cable present, otherwise returns 0. | |
![]() |
Return |
![]() |
InputAnalogByte |
Reads one of the input channels ( IN1 - IN8 ) as an analogue value with range 0-255 | |
![]() |
Channel |
Range: 1 - 8 | |
![]() |
Return |
![]() |
ReadEEPROM |
Read a single byte from the EEPROM. | |
![]() |
Address |
![]() |
Return |
![]() |
DisplayClear |
Clears all text from the display | |
![]() |
Return |
![]() |
DisplayPixel |
Sets or clears a pixel at location X, Y. | |
![]() |
X1 |
![]() |
Y1 |
![]() |
State |
0=Off / 1=On | |
![]() |
Return |
![]() |
WriteEEPROM |
Write a single byte to a location in the EEPROM. | |
![]() |
Address |
![]() |
Data |
![]() |
Return |
![]() |
DisplayClearLine |
Clears a single line of text from the display | |
![]() |
Line |
Line to clear. Range 0 to CharacterHeight - 1 | |
![]() |
Return |
![]() |
DisplayPrintASCII |
Prints a single ASCII character to the display | |
![]() |
Character |
Holds an ASCII value e.g. 'A' | |
![]() |
Return |
![]() |
DisplayPrintString |
Prints a string of ASCII characters to the display | |
![]() |
Text |
Enter the text or variable to print to the display | |
![]() |
Return |
![]() |
InputDigital |
Reads one of the input channels ( IN1 - IN8 ) as a digital value with range 0-1 | |
![]() |
Channel |
Range: 1 - 8 | |
![]() |
Return |
![]() |
DisplayPrintNumber |
Prints a number to the display as an ASCII string | |
![]() |
Number |
Enter the number or variable to print to the display | |
![]() |
Return |
![]() |
InputAnalogInt |
Reads one of the input channels ( IN1 - IN8 ) as an analogue value with range 0-4095 | |
![]() |
Channel |
Range: 1 - 8 | |
![]() |
Return |
![]() |
Initialise |
Starts up the MIAC IO and display. | |
![]() |
Return |