Component: Combo (BL0114) (E-blocks 2)
From Flowcode Help
| 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
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
Macro reference
IO_GetPort
| IO_GetPort | |
| Reads the state of a single port | |
| Bank | |
| 0 = Top Bank of Switches, 1 = Bottom Bank of Switches | |
| Return | |
IO_GetSwitchState
IO_ReadAnalogAsByte
| IO_ReadAnalogAsByte | |
| Reads one of the analogue components as an byte value | |
| Channel | |
| 0 = Light Sensor, 1 = Potentiometer | |
| Return | |
IO_ReadAnalogAsInt
| IO_ReadAnalogAsInt | |
| Reads one of the analogue components as an Integer value | |
| Channel | |
| 0 = Light Sensor, 1 = Potentiometer | |
| Return | |
IO_SetLEDState
| IO_SetLEDState | |
| Sets the state of a single LED | |
| Bank | |
| 0 = Top Bank of LEDs, 1 = Bottom Bank of LEDs | |
| LED | |
| 0 = LED0, 7 = LED7 | |
| State | |
| 0 = Off, 1 = On | |
| Return | |
IO_SetPort
| IO_SetPort | |
| Sets the state of a single port | |
| Bank | |
| 0 = Top Bank of LEDs, 1 = Bottom Bank of LEDs | |
| Value | |
| Return | |
LCD_Clear
| LCD_Clear | |
| Clears the entire contents of the display. | |
| Return | |
LCD_ClearLine
LCD_Command
LCD_Cursor
LCD_PrintAscii
| LCD_PrintAscii | |
| Takes the ascii value for a character and prints the character | |
| character | |
| Holds an ascii value. | |
| 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 | |
| Number | |
| Enter the number or variable to print to the LCD | |
| Return | |
LCD_PrintString
| LCD_PrintString | |
| Breaks down a string of text and sends it to the LCD via the private RawSend(byte, mask) macro | |
| Text | |
| Enter the text or variable to print to the LCD | |
| Return | |
LCD_RAMWrite
LCD_RawSend
| LCD_RawSend | |
| Sends data to the LCD display | |
| data | |
| The data byte to send to the LCD | |
| type | |
| A boolean to indicate command type: true to write data, false to write a command | |
| Return | |
LCD_RemapCharacter
LCD_ScrollDisplay
LCD_Start
| LCD_Start | |
| Startup routine required by the hardware device. Automatically clears the display after initialising. | |
| Return | |
Seg_ShowDigit
Seg_ShowSegments