Component: MIAC (dsPIC) (MIAC (dsPIC)) (Misc)
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 1.2 |
Category | Misc |
Contents
MIAC (dsPIC) component
MIAC - Matrix Industrial Automotive Controller (dsPIC)
Component Source Code
Please click here for the component source code: FC_Comp_Source_MIAC_(dsPIC).fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
RelayOFF | |
Turns off the requested relay given by parameter RelayID, values 1 to 4 | |
- BYTE | RelayID |
The relay to turn off. From 1 to 4. | |
- VOID | Return |
InputANALOG_10Bit | |
- BYTE | InputID |
The input to read. From 1 to 8. | |
- INT | Return |
PrintString | |
Prints the given character string to the display at the current cursor position and moves the cursor position. | |
- STRING | Str |
The string to send to the display. | |
- VOID | Return |
GetKeypad | |
Returns the key code of the key that is pressed, otherwise if nothing is pressed then returns 255 | |
- BYTE | Return |
DisplayStart | |
Initialise the display ready for use | |
- VOID | Return |
PrintNumber | |
Prints the given number to the display starting at the current cursor position and moves the cursor position. | |
- INT | n |
- VOID | Return |
PrintASCII | |
Prints the given character to the display at the current cursor position and increments the cursor position. | |
- BYTE | Char |
ASCII code of the character to print. | |
- VOID | Return |
DrawRect | |
Draws a rectangular box from x1,y1 to x2,y2 | |
- BYTE | x1 |
- BYTE | y1 |
- BYTE | x2 |
- BYTE | y2 |
- BYTE | state |
1=draw pixel, 0=clear pixel | |
- VOID | Return |
DisplayClear | |
Clears the display to white space | |
- VOID | Return |
RelayON | |
Turns on the requested relay given by parameter RelayID, values 1 to 4 | |
- BYTE | RelayID |
The relay to turn on from 1 to 4. | |
- VOID | Return |
OutputOFF | |
Outputs a digital low state on the output requested by parameter TransID (Outputs 1 to 4) | |
- BYTE | TransID |
1 to 4 (Outputs A to D) | |
- VOID | Return |
DrawPixel | |
Draws, or clears, a pixel at point x,y | |
- BYTE | px |
- BYTE | py |
- BYTE | state |
state = 0 clears the pixel, else draws the pixel | |
- VOID | Return |
OutputON | |
Outputs a digital high state on the output requested by parameter TransID (Outputs 1 to 4) | |
- BYTE | TransID |
1 to 4 (Outputs A to D) | |
- VOID | Return |
InputDIGITAL | |
Returns the digital state of the input requested by parameter InputID (Inputs 1 to 8) | |
- BYTE | InputID |
The input number from 1 to 8. | |
- BYTE | Return |
DisplayLight | |
Turns the display backlight on or off | |
- BYTE | state |
- VOID | Return |
InputANALOG | |
Returns the 8 bit value for the analogue input requested by parameter InputID (Inputs 1 to 8) | |
- BYTE | InputID |
The input to read from 1 to 8. | |
- BYTE | Return |
Property reference
Properties |