Component: Combo (BL0114) (E-blocks 2)
From Flowcode Help
(Redirected from Component: ID d4c04ac8 bbcd 4981 8ce6 9d6c9bb1e26a)
Jump to navigationJump to search| 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
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
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