Difference between revisions of "Component: Combo (BL0114) (E-blocks 2)"
From Flowcode Help
Jump to navigationJump to search| Line 49: | Line 49: | ||
| ''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
| + | |||
| + | |||
Revision as of 10:26, 20 October 2023
| Author | Matrix TSL | 
| Version | 1.0 | 
| Category | E-blocks 2 | 
Contents
- 1 Combo component
- 2 Component Source Code
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 IO_GetPort
- 5.2 IO_GetSwitchState
- 5.3 IO_ReadAnalogAsByte
- 5.4 IO_ReadAnalogAsInt
- 5.5 IO_SetLEDState
- 5.6 IO_SetPort
- 5.7 LCD_Clear
- 5.8 LCD_ClearLine
- 5.9 LCD_Command
- 5.10 LCD_Cursor
- 5.11 LCD_PrintAscii
- 5.12 LCD_PrintFloat
- 5.13 LCD_PrintFormattedNumber
- 5.14 LCD_PrintNumber
- 5.15 LCD_PrintString
- 5.16 LCD_RAMWrite
- 5.17 LCD_RawSend
- 5.18 LCD_RemapCharacter
- 5.19 LCD_ScrollDisplay
- 5.20 LCD_Start
- 5.21 Seg_ShowDigit
- 5.22 Seg_ShowSegments
 
- 6 Property reference
Combo component
A component to drive the BL0114 Combo board including LEDs, Switches, LCD, 7-Segs and analogue inputs.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_EBlocks2_COMBO_BL0114.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_EBlocks2_COMBO_BL0114.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
IO_GetPort
|   | IO_GetPort | 
| Reads the state of a single port | |
|  - BYTE | Bank | 
| 0 = Top Bank of Switches, 1 = Bottom Bank of Switches | |
|  - BYTE | Return | 
IO_GetSwitchState
IO_ReadAnalogAsByte
|   | IO_ReadAnalogAsByte | 
| Reads one of the analogue components as an byte value | |
|  - BYTE | Channel | 
| 0 = Light Sensor, 1 = Potentiometer | |
|  - BYTE | Return | 
IO_ReadAnalogAsInt
|   | IO_ReadAnalogAsInt | 
| Reads one of the analogue components as an Integer value | |
|  - BYTE | Channel | 
| 0 = Light Sensor, 1 = Potentiometer | |
|  - INT | Return | 
IO_SetLEDState
|   | IO_SetLEDState | 
| Sets the state of a single LED | |
|  - BYTE | Bank | 
| 0 = Top Bank of LEDs, 1 = Bottom Bank of LEDs | |
|  - BYTE | LED | 
| 0 = LED0, 7 = LED7 | |
|  - BYTE | State | 
| 0 = Off, 1 = On | |
|  - VOID | Return | 
IO_SetPort
|   | IO_SetPort | 
| Sets the state of a single port | |
|  - BYTE | Bank | 
| 0 = Top Bank of LEDs, 1 = Bottom Bank of LEDs | |
|  - BYTE | Value | 
|  - VOID | Return | 
LCD_Clear
|   | LCD_Clear | 
| Clears the entire contents of the display. | |
|  - VOID | Return | 
LCD_ClearLine
LCD_Command
LCD_Cursor
LCD_PrintAscii
|   | LCD_PrintAscii | 
| Takes the ascii value for a character and prints the character | |
|  - BYTE | character | 
| Holds an ascii value. | |
|  - VOID | Return | 
LCD_PrintFloat
LCD_PrintFormattedNumber
LCD_PrintNumber
|   | LCD_PrintNumber | 
| Based on v5 macro, will allow you to print a number. This is limited to a signed-INT, -32768 to 32767 | |
|  - INT | Number | 
| Enter the number or variable to print to the LCD | |
|  - VOID | Return | 
LCD_PrintString
|   | LCD_PrintString | 
| Breaks down a string of text and sends it to the LCD via the private RawSend(byte, mask) macro | |
|  - STRING | Text | 
| Enter the text or variable to print to the LCD | |
|  - VOID | Return | 
LCD_RAMWrite
LCD_RawSend
|   | LCD_RawSend | 
| Sends data to the LCD display | |
|  - BYTE | data | 
| The data byte to send to the LCD | |
|  - BOOL | type | 
| A boolean to indicate command type: true to write data, false to write a command | |
|  - VOID | Return | 
LCD_RemapCharacter
LCD_ScrollDisplay
LCD_Start
|   | LCD_Start | 
| Startup routine required by the hardware device. Automatically clears the display after initialising. | |
|  - VOID | Return | 
Seg_ShowDigit
Seg_ShowSegments








