Difference between revisions of "Component: Combo (BL0114) (E-blocks 2)"
From Flowcode Help
Jump to navigationJump to search| Line 14: | Line 14: | ||
| ==Combo component== | ==Combo component== | ||
| A component to drive the BL0114 Combo board including LEDs, Switches, LCD, 7-Segs  and analogue inputs.   | A component to drive the BL0114 Combo board including LEDs, Switches, LCD, 7-Segs  and analogue inputs.   | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| ==Detailed description== | ==Detailed description== | ||
| Line 618: | Line 612: | ||
| | colspan="2" | Controls if traces are automatically added to the data recorder window for the analogue signals on the combo board.  | | colspan="2" | Controls if traces are automatically added to the data recorder window for the analogue signals on the combo board.  | ||
| |} | |} | ||
| + | |||
| + | ==Component Source Code== | ||
| + | |||
| + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_EBlocks2_COMBO_BL0114.fcfx FC_Comp_Source_EBlocks2_COMBO_BL0114.fcfx] | ||
| + | |||
| + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_EBlocks2_COMBO_BL0114.fcfx FC_Comp_Source_EBlocks2_COMBO_BL0114.fcfx] | ||
Latest revision as of 08:58, 9 June 2025
| Author | Matrix TSL | 
| Version | 1.0 | 
| Category | E-blocks 2 | 
Contents
- 1 Combo component
- 2 Detailed description
- 3 Examples
- 4 Macro reference
- 4.1 IO_GetPort
- 4.2 IO_GetSwitchState
- 4.3 IO_ReadAnalogAsByte
- 4.4 IO_ReadAnalogAsInt
- 4.5 IO_SetLEDState
- 4.6 IO_SetPort
- 4.7 LCD_Clear
- 4.8 LCD_ClearLine
- 4.9 LCD_Command
- 4.10 LCD_Cursor
- 4.11 LCD_PrintAscii
- 4.12 LCD_PrintFloat
- 4.13 LCD_PrintFormattedNumber
- 4.14 LCD_PrintNumber
- 4.15 LCD_PrintString
- 4.16 LCD_RAMWrite
- 4.17 LCD_RawSend
- 4.18 LCD_RemapCharacter
- 4.19 LCD_ScrollDisplay
- 4.20 LCD_Start
- 4.21 Seg_ShowDigit
- 4.22 Seg_ShowSegments
 
- 5 Property reference
- 6 Component Source Code
Combo component
A component to drive the BL0114 Combo board including LEDs, Switches, LCD, 7-Segs and analogue inputs.
Detailed description
No detailed description exists yet for this component
Examples
Creates a standard stopwatch with 0.01 second accuracy complete with start/stop/restart functionality.
Displays using the 7-segment displays on the BL0114 Combo
Combo connected to Ports A and B
A4 Start / Stop - A5 Reset
 Combo 7-Seg Timer
Combo 7-Seg Timer
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
Property reference
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








