Difference between revisions of "Component: Combo Board (EB083) (E-blocks 1)"
From Flowcode Help
Jump to navigationJump to searchLine 62: | Line 62: | ||
:Note; Due to a limitation in the Arduino Uno hardware, portA6 & PortA7 are replicated from PortA5 in this template. | :Note; Due to a limitation in the Arduino Uno hardware, portA6 & PortA7 are replicated from PortA5 in this template. | ||
+ | |||
+ | |||
Line 587: | Line 589: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
− | |||
− | |||
Revision as of 12:19, 3 February 2023
Author | 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 ClearLine
- 5.3 Command
- 5.4 Cursor
- 5.5 GetPort
- 5.6 GetSwitchState
- 5.7 PrintAscii
- 5.8 PrintFloat
- 5.9 PrintFormattedNumber
- 5.10 PrintNumber
- 5.11 PrintString
- 5.12 RAMWrite
- 5.13 RawSend
- 5.14 ReadAnalogAsByte
- 5.15 ReadAnalogAsInt
- 5.16 RemapCharacter
- 5.17 ScrollDisplay
- 5.18 SegShowDigit
- 5.19 SegShowSegments
- 5.20 SetLEDState
- 5.21 SetPort
- 5.22 Start
- 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_temp/EB086_DEMO.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_temp/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 |
ClearLine
Command
Cursor
GetPort
![]() |
GetPort |
Reads the state of a single port | |
![]() |
Bank |
0 = Top Bank of Switches, 1 = Bottom Bank of Switches | |
![]() |
Return |
GetSwitchState
PrintAscii
![]() |
PrintAscii |
Takes the ascii value for a character and prints the character | |
![]() |
character |
Holds an ascii value. | |
![]() |
Return |
PrintFloat
PrintFormattedNumber
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 |
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 |
RAMWrite
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 |
RemapCharacter
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
SegShowSegments
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 |
SetPort
![]() |
SetPort |
Sets the state of a single port | |
![]() |
Bank |
0 = Top Bank of LEDs, 1 = Bottom Bank of LEDs | |
![]() |
Value |
![]() |
Return |
Start
![]() |
Start |
Startup routine required by the hardware device. Automatically clears the display after initialising. | |
![]() |
Return |