Difference between revisions of "Component: MIAC (dsPIC) (MIAC (dsPIC)) (Misc)"
From Flowcode Help
Jump to navigationJump to search| Line 17: | Line 17: | ||
| ==Component Source Code== | ==Component Source Code== | ||
| − | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_MIAC_(dsPIC).fcfx FC_Comp_Source_MIAC_(dsPIC).fcfx] | 
| − | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_MIAC_(dsPIC).fcfx FC_Comp_Source_MIAC_(dsPIC).fcfx] | 
| ==Detailed description== | ==Detailed description== | ||
| Line 57: | Line 57: | ||
| ''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
| + | |||
| + | |||
Latest revision as of 13:11, 7 February 2023
| Author | 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 DisplayClear
- 5.2 DisplayCursor
- 5.3 DisplayLight
- 5.4 DisplayStart
- 5.5 DrawGlyph
- 5.6 DrawLine
- 5.7 DrawPixel
- 5.8 DrawRect
- 5.9 GetKeypad
- 5.10 InputANALOG
- 5.11 InputANALOG_10Bit
- 5.12 InputDIGITAL
- 5.13 OutputOFF
- 5.14 OutputON
- 5.15 PrintASCII
- 5.16 PrintFormattedNumber
- 5.17 PrintNumber
- 5.18 PrintString
- 5.19 RelayOFF
- 5.20 RelayON
 
- 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
DisplayClear
|   | DisplayClear | 
| Clears the display to white space | |
|  - VOID | Return | 
DisplayCursor
DisplayLight
|   | DisplayLight | 
| Turns the display backlight on or off | |
|  - BYTE | state | 
|  - VOID | Return | 
DisplayStart
|   | DisplayStart | 
| Initialise the display ready for use | |
|  - VOID | Return | 
DrawGlyph
DrawLine
DrawPixel
|   | 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 | 
DrawRect
|   | 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 | 
GetKeypad
|   | GetKeypad | 
| Returns the key code of the key that is pressed, otherwise if nothing is pressed then returns 255 | |
|  - BYTE | Return | 
InputANALOG
|   | 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 | 
InputANALOG_10Bit
|   | InputANALOG_10Bit | 
|  - BYTE | InputID | 
| The input to read. From 1 to 8. | |
|  - INT | Return | 
InputDIGITAL
|   | 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 | 
OutputOFF
|   | 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 | 
OutputON
|   | 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 | 
PrintASCII
|   | 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 | 
PrintFormattedNumber
PrintNumber
|   | PrintNumber | 
| Prints the given number to the display starting at the current cursor position and moves the cursor position. | |
|  - INT | n | 
|  - VOID | Return | 
PrintString
|   | 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 | 
RelayOFF
|   | 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 | 
RelayON
|   | 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 | 
Property reference
|   | Properties | 


