Component: MIAC NXT / ECU (MIAC Module)
From Flowcode Help
(Redirected from Component: ID f9109442 8b0f 47d6 b563 d085588af222)
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 1.1 |
Category | MIAC Module |
Contents
- 1 MIAC NXT / ECU component
- 2 Component Source Code
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 DisplayClear
- 5.2 DisplayClearLine
- 5.3 DisplayCursor
- 5.4 DisplayGetCursorPosition
- 5.5 DisplayPixel
- 5.6 DisplayPrintASCII
- 5.7 DisplayPrintFloat
- 5.8 DisplayPrintFormattedNumber
- 5.9 DisplayPrintNumber
- 5.10 DisplayPrintString
- 5.11 Initialise
- 5.12 InputAnalogByte
- 5.13 InputAnalogInt
- 5.14 InputDigital
- 5.15 Print
- 5.16 ReadEEPROM
- 5.17 ReadKeypad
- 5.18 ReadTransistorOutputCurrent
- 5.19 ReadUSBConnected
- 5.20 RelayOutputState
- 5.21 TransistorOutputState
- 5.22 TransistorPWMDuty
- 5.23 TransistorPWMEnable
- 5.24 WriteEEPROM
- 6 Property reference
MIAC NXT / ECU component
Component to drive the MIAC NXT / MIAC ECU range of hardware.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_MIAC_NXT_Component_Source.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_MIAC_NXT_Component_Source.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
DisplayClear
DisplayClear | |
Clears all text from the display | |
- VOID | Return |
DisplayClearLine
DisplayClearLine | |
Clears a single line of text from the display | |
- BYTE | Line |
Line to clear. Range 0 to CharacterHeight - 1 | |
- VOID | Return |
DisplayCursor
DisplayGetCursorPosition
DisplayGetCursorPosition | |
Gets the current pixel position of the cursor within the coordinate space | |
- BYTE | Axis |
0=X, 1=Y | |
- UINT | Return |
DisplayPixel
DisplayPixel | |
Sets or clears a pixel at location X, Y. | |
- UINT | X1 |
- UINT | Y1 |
- BOOL | State |
0=Off / 1=On | |
- VOID | Return |
DisplayPrintASCII
DisplayPrintASCII | |
Prints a single ASCII character to the display | |
- BYTE | Character |
Holds an ASCII value e.g. 'A' | |
- VOID | Return |
DisplayPrintFloat
DisplayPrintFloat | |
Prints a formatted floating point number to the display | |
- FLOAT | Number |
- BYTE | DecimalPoints |
Number of decimal points to display | |
- VOID | Return |
DisplayPrintFormattedNumber
DisplayPrintNumber
DisplayPrintNumber | |
Prints a number to the display as an ASCII string | |
- INT | Number |
Enter the number or variable to print to the display | |
- VOID | Return |
DisplayPrintString
DisplayPrintString | |
Prints a string of ASCII characters to the display | |
- STRING | Text |
Enter the text or variable to print to the display | |
- VOID | Return |
Initialise
Initialise | |
Starts up the MIAC IO and display. | |
- VOID | Return |
InputAnalogByte
InputAnalogByte | |
Reads one of the input channels ( IN1 - IN8 ) as an analogue value with range 0-255 | |
- BYTE | Channel |
Range: 1 - 8 | |
- BYTE | Return |
InputAnalogInt
InputAnalogInt | |
Reads one of the input channels ( IN1 - IN8 ) as an analogue value with range 0-4095 | |
- BYTE | Channel |
Range: 1 - 8 | |
- UINT | Return |
InputDigital
InputDigital | |
Reads one of the input channels ( IN1 - IN8 ) as a digital value with range 0-1 | |
- BYTE | Channel |
Range: 1 - 8 | |
- BOOL | Return |
ReadEEPROM
ReadEEPROM | |
Read a single byte from the EEPROM. | |
- UINT | Address |
- BYTE | Return |
ReadKeypad
ReadTransistorOutputCurrent
ReadUSBConnected
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. | |
- BOOL | Return |
RelayOutputState
TransistorOutputState
TransistorPWMDuty
TransistorPWMEnable
WriteEEPROM
WriteEEPROM | |
Write a single byte to a location in the EEPROM. | |
- UINT | Address |
- BYTE | Data |
- VOID | Return |