Difference between revisions of "Component Creation"

From Flowcode Help
Jump to navigationJump to search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Component Creation==
+
In Flowcode IDE, a component is a predefined module or building block that represents a physical or logical element, which can be added to your project to simplify the process of designing and simulating embedded systems. These components can range from hardware elements like sensors, actuators, and communication devices, to software elements like variables, timers, or logic gates.
<span id="Component_Creation"></span>
+
 
*[[New_Component_Features|New Component Features]] - Additional component creation features added in Flowcode 8
+
Each component typically comes with its own properties, methods, and events, which allow users to configure and interact with the component in a graphical way. For example:
 +
 
 +
Hardware components: These include microcontrollers, LEDs, motors, displays, or communication interfaces like I2C, SPI, and UART.
 +
Software components: These are functional blocks such as delays, counters, or decision-making constructs like conditionals or loops.
 +
Flowcode simplifies embedded programming by allowing you to drag and drop these components into your design, and then connect and configure them without the need to write low-level code manually. However, it still offers the flexibility to add custom code when needed.
 +
 
 +
Each component can also be simulated, allowing you to test and debug your design before deploying it to the actual hardware.
 +
 
 +
==Component Creation Steps==
 
*[[Creating_a_Property|Creating a Property]] - How to create a property
 
*[[Creating_a_Property|Creating a Property]] - How to create a property
 
*[[IO_Properties|IO Properties]] - How to create and use IO properties
 
*[[IO_Properties|IO Properties]] - How to create and use IO properties
Line 10: Line 18:
 
*[[Using_CAL_Components|Using CAL Components]] - Creating a component using CAL functionality (I2C / SPI / UART etc)
 
*[[Using_CAL_Components|Using CAL Components]] - Creating a component using CAL functionality (I2C / SPI / UART etc)
 
*[[Using_A_Base_Component|Using A Base Component]] - Creating a new component using a base component
 
*[[Using_A_Base_Component|Using A Base Component]] - Creating a new component using a base component
 +
*[[New_Component_Features|New Component Features]] - Additional component creation features added in Flowcode
 +
 +
==Examples==
 
*[[Exercises|Exercises]] - Worked exercises including creating components
 
*[[Exercises|Exercises]] - Worked exercises including creating components
 +
*[[SimpleSwitch|Example - Simple Switch]] - Creating a simple momentary or latching switch using images to represent switch state
 
*[[Number_Conversions|Example - Number Conversions]] - Creating a helper component to help convert between number systems Decimal, Hexadecimal and Binary
 
*[[Number_Conversions|Example - Number Conversions]] - Creating a helper component to help convert between number systems Decimal, Hexadecimal and Binary
 
*[[Creating_a_two_wheeled_robot|Example - Creating a two-wheeled robot]] - Creating a 2 wheeled robot from scratch (simulation & downloadable)
 
*[[Creating_a_two_wheeled_robot|Example - Creating a two-wheeled robot]] - Creating a 2 wheeled robot from scratch (simulation & downloadable)
 +
 +
==Exercises==
 +
*[[Exercise - Create an LED Component | Create an LED Component]] - Creating a flowchart revolving around an LED component driven by simulation macros and functions.
 +
*[[Exercise - Exporting the LED Component | Exporting the LED Component]] - Exporting and saving the component, including simulation macros and properties and variables.
 +
*[[Exercise - Importing the LED Component | Importing the LED Component]] - Importing the component into a new flowchart and preparing it for testing in simulation.
 +
*[[Exercise - Testing an Imported LED Component | Testing an Imported Component]] - Testing the imported LED by creating a flowchart program to run in simulation to test the component.
 +
*[[Exercise - Building a Complex Component | Building a Complex Component - The Traffic Cone]] - Building and programming a component by grouping multiple elements on the System Panel.
 +
*[[Exercise - Exporting the Traffic Cone Component| Exporting the Traffic Cone]] - Exporting and saving the component, including simulation macros and properties to prepare for testing.
 +
*[[Exercise - Importing and Testing the Traffic Cone| Importing and Testing the Traffic Cone]] - Import the component and test it in simulation by calling the previously programmed simulation macro.

Latest revision as of 10:26, 2 October 2024

In Flowcode IDE, a component is a predefined module or building block that represents a physical or logical element, which can be added to your project to simplify the process of designing and simulating embedded systems. These components can range from hardware elements like sensors, actuators, and communication devices, to software elements like variables, timers, or logic gates.

Each component typically comes with its own properties, methods, and events, which allow users to configure and interact with the component in a graphical way. For example:

Hardware components: These include microcontrollers, LEDs, motors, displays, or communication interfaces like I2C, SPI, and UART. Software components: These are functional blocks such as delays, counters, or decision-making constructs like conditionals or loops. Flowcode simplifies embedded programming by allowing you to drag and drop these components into your design, and then connect and configure them without the need to write low-level code manually. However, it still offers the flexibility to add custom code when needed.

Each component can also be simulated, allowing you to test and debug your design before deploying it to the actual hardware.

Component Creation Steps

Examples

Exercises