Component: Combo Board (EB083) (E-blocks 1)
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 1.0 |
Category | E-blocks 1 |
Contents
- 1 Combo Board component
- 2 Component Source Code
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 Clear
- 5.2 PrintString
- 5.3 SetPort
- 5.4 GetSwitchState
- 5.5 PrintAscii
- 5.6 PrintNumber
- 5.7 RAMWrite
- 5.8 GetPort
- 5.9 ClearLine
- 5.10 Cursor
- 5.11 Command
- 5.12 PrintFormattedNumber
- 5.13 SegShowSegments
- 5.14 ScrollDisplay
- 5.15 SegShowDigit
- 5.16 RawSend
- 5.17 ReadAnalogAsByte
- 5.18 ReadAnalogAsInt
- 5.19 PrintFloat
- 5.20 RemapCharacter
- 5.21 Start
- 5.22 SetLEDState
- 6 Property reference
Combo Board component
A component to drive the EB083 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_EB086_DEMO.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_EB086_DEMO.fcfx
Detailed description
No detailed description exists yet for this component
Examples
The following files provide examples of how to use this component:
Arduino Mega 2560 & Combo Board
- This blank project consists of the Matrix EB083 Combo Board connected to an Arduino Mega 2560.
- This blank project consists of the Matrix EB093 Combo Board connected to an Arduino Uno R3.
- Note; Due to a limitation in the Arduino Uno hardware, portA6 & PortA7 are replicated from PortA5 in this template.
Macro reference
Clear
![]() |
Clear |
Clears the entire contents of the display. | |
![]() |
Return |
PrintString
![]() |
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 |
SetPort
![]() |
SetPort |
Sets the state of a single port | |
![]() |
Bank |
0 = Top Bank of LEDs, 1 = Bottom Bank of LEDs | |
![]() |
Value |
![]() |
Return |
GetSwitchState
PrintAscii
![]() |
PrintAscii |
Takes the ascii value for a character and prints the character | |
![]() |
character |
Holds an ascii value. | |
![]() |
Return |
PrintNumber
![]() |
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 |
RAMWrite
GetPort
![]() |
GetPort |
Reads the state of a single port | |
![]() |
Bank |
0 = Top Bank of Switches, 1 = Bottom Bank of Switches | |
![]() |
Return |
ClearLine
Cursor
Command
PrintFormattedNumber
SegShowSegments
ScrollDisplay
![]() |
ScrollDisplay |
Scrolls the display left or right by a number of given positions. | |
![]() |
Position |
Holds the number of positions to shift the display | |
![]() |
Direction |
0 = left, 1 = right | |
![]() |
Return |
SegShowDigit
RawSend
![]() |
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 |
ReadAnalogAsByte
![]() |
ReadAnalogAsByte |
Reads one of the analogue components as an byte value | |
![]() |
Channel |
0 = Light Sensor, 1 = Potentiometer | |
![]() |
Return |
ReadAnalogAsInt
![]() |
ReadAnalogAsInt |
Reads one of the analogue components as an Integer value | |
![]() |
Channel |
0 = Light Sensor, 1 = Potentiometer | |
![]() |
Return |
PrintFloat
RemapCharacter
Start
![]() |
Start |
Startup routine required by the hardware device. Automatically clears the display after initialising. | |
![]() |
Return |
SetLEDState
![]() |
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 |