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>'' | ||
| + | |||
| + | |||
| Line 55: | Line 57: | ||
| ==Macro reference== | ==Macro reference== | ||
| + | ===Seg_ShowDigit=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 83: | Line 86: | ||
| + | ===LCD_PrintFormattedNumber=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 106: | Line 110: | ||
| + | ===LCD_RemapCharacter=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 134: | Line 139: | ||
| + | ===LCD_ScrollDisplay=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 157: | Line 163: | ||
| + | ===IO_SetPort=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 180: | Line 187: | ||
| + | ===IO_SetLEDState=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 208: | Line 216: | ||
| + | ===LCD_PrintFloat=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 231: | Line 240: | ||
| + | ===IO_GetPort=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 249: | Line 259: | ||
| + | ===LCD_Cursor=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 272: | Line 283: | ||
| + | ===Seg_ShowSegments=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 295: | Line 307: | ||
| + | ===LCD_Start=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 308: | Line 321: | ||
| + | ===LCD_Command=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 326: | Line 340: | ||
| + | ===LCD_RAMWrite=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 384: | Line 399: | ||
| + | ===IO_ReadAnalogAsInt=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 402: | Line 418: | ||
| + | ===LCD_PrintString=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 420: | Line 437: | ||
| + | ===LCD_ClearLine=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 438: | Line 456: | ||
| + | ===IO_GetSwitchState=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 461: | Line 480: | ||
| + | ===IO_ReadAnalogAsByte=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 479: | Line 499: | ||
| + | ===LCD_PrintAscii=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 497: | Line 518: | ||
| + | ===LCD_PrintNumber=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 515: | Line 537: | ||
| + | ===LCD_RawSend=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 538: | Line 561: | ||
| + | ===LCD_Clear=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
Revision as of 11:49, 3 February 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 Seg_ShowDigit
- 5.2 LCD_PrintFormattedNumber
- 5.3 LCD_RemapCharacter
- 5.4 LCD_ScrollDisplay
- 5.5 IO_SetPort
- 5.6 IO_SetLEDState
- 5.7 LCD_PrintFloat
- 5.8 IO_GetPort
- 5.9 LCD_Cursor
- 5.10 Seg_ShowSegments
- 5.11 LCD_Start
- 5.12 LCD_Command
- 5.13 LCD_RAMWrite
- 5.14 IO_ReadAnalogAsInt
- 5.15 LCD_PrintString
- 5.16 LCD_ClearLine
- 5.17 IO_GetSwitchState
- 5.18 IO_ReadAnalogAsByte
- 5.19 LCD_PrintAscii
- 5.20 LCD_PrintNumber
- 5.21 LCD_RawSend
- 5.22 LCD_Clear
 
- 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
Seg_ShowDigit
LCD_PrintFormattedNumber
LCD_RemapCharacter
LCD_ScrollDisplay
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 | 
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 | 
LCD_PrintFloat
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 | 
LCD_Cursor
Seg_ShowSegments
LCD_Start
|   | LCD_Start | 
| Startup routine required by the hardware device. Automatically clears the display after initialising. | |
|  - VOID | Return | 
LCD_Command
LCD_RAMWrite
IO_ReadAnalogAsInt
|   | IO_ReadAnalogAsInt | 
| Reads one of the analogue components as an Integer value | |
|  - BYTE | Channel | 
| 0 = Light Sensor, 1 = Potentiometer | |
|  - INT | 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_ClearLine
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 | 
LCD_PrintAscii
|   | LCD_PrintAscii | 
| Takes the ascii value for a character and prints the character | |
|  - BYTE | character | 
| Holds an ascii value. | |
|  - VOID | Return | 
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_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_Clear
|   | LCD_Clear | 
| Clears the entire contents of the display. | |
|  - VOID | Return | 








