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