Component: MIAC NXT / ECU (MIAC Module)
From Flowcode Help
Jump to navigationJump to search| Author | 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 TransistorOutputState
- 5.2 DisplayPrintFormattedNumber
- 5.3 DisplayPrintFloat
- 5.4 DisplayGetCursorPosition
- 5.5 ReadTransistorOutputCurrent
- 5.6 RelayOutputState
- 5.7 ReadUSBConnected
- 5.8 InputAnalogByte
- 5.9 ReadKeypad
- 5.10 ReadEEPROM
- 5.11 DisplayClear
- 5.12 DisplayPixel
- 5.13 WriteEEPROM
- 5.14 DisplayClearLine
- 5.15 DisplayPrintASCII
- 5.16 TransistorPWMDuty
- 5.17 DisplayPrintString
- 5.18 Print
- 5.19 TransistorPWMEnable
- 5.20 DisplayCursor
- 5.21 InputDigital
- 5.22 DisplayPrintNumber
- 5.23 InputAnalogInt
- 5.24 Initialise
- 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
TransistorOutputState
DisplayPrintFormattedNumber
DisplayPrintFloat
| DisplayPrintFloat | |
| Prints a formatted floating point number to the display | |
| Number | |
| DecimalPoints | |
| Number of decimal points to display | |
| Return | |
DisplayGetCursorPosition
| DisplayGetCursorPosition | |
| Gets the current pixel position of the cursor within the coordinate space | |
| Axis | |
| 0=X, 1=Y | |
| Return | |
ReadTransistorOutputCurrent
RelayOutputState
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. | |
| Return | |
InputAnalogByte
| InputAnalogByte | |
| Reads one of the input channels ( IN1 - IN8 ) as an analogue value with range 0-255 | |
| Channel | |
| Range: 1 - 8 | |
| Return | |
ReadKeypad
ReadEEPROM
| ReadEEPROM | |
| Read a single byte from the EEPROM. | |
| Address | |
| Return | |
DisplayClear
| DisplayClear | |
| Clears all text from the display | |
| Return | |
DisplayPixel
| DisplayPixel | |
| Sets or clears a pixel at location X, Y. | |
| X1 | |
| Y1 | |
| State | |
| 0=Off / 1=On | |
| Return | |
WriteEEPROM
| WriteEEPROM | |
| Write a single byte to a location in the EEPROM. | |
| Address | |
| Data | |
| Return | |
DisplayClearLine
| DisplayClearLine | |
| Clears a single line of text from the display | |
| Line | |
| Line to clear. Range 0 to CharacterHeight - 1 | |
| Return | |
DisplayPrintASCII
| DisplayPrintASCII | |
| Prints a single ASCII character to the display | |
| Character | |
| Holds an ASCII value e.g. 'A' | |
| Return | |
TransistorPWMDuty
DisplayPrintString
| DisplayPrintString | |
| Prints a string of ASCII characters to the display | |
| Text | |
| Enter the text or variable to print to the display | |
| Return | |
TransistorPWMEnable
DisplayCursor
InputDigital
| InputDigital | |
| Reads one of the input channels ( IN1 - IN8 ) as a digital value with range 0-1 | |
| Channel | |
| Range: 1 - 8 | |
| Return | |
DisplayPrintNumber
| DisplayPrintNumber | |
| Prints a number to the display as an ASCII string | |
| Number | |
| Enter the number or variable to print to the display | |
| Return | |
InputAnalogInt
| InputAnalogInt | |
| Reads one of the input channels ( IN1 - IN8 ) as an analogue value with range 0-4095 | |
| Channel | |
| Range: 1 - 8 | |
| Return | |
Initialise
| Initialise | |
| Starts up the MIAC IO and display. | |
| Return | |