What is programming ?
Programming
Two ways to write a program!!
Code
Visual
To learn how to write a code we have to learn
operations on variables
The numeric variables like integers, float, and double can apply these operations
Flow Of Execution
#include/define Region
This order get the libraries that have codes that we can use on our project, and you can declare variables here too
Setup Region :
The area that contain the pin mode and the functions that work ones per run
Loop Region :
The area that contain the code that will run for infinity
Flow control
Flow of control, is the order of instructions, and statements are executed or evaluated when a program is running.
Variables
Many programming languages have what are called control flow statements; used to determine what section of code is run in a program at a given time.
A variable is nothing but a name given to a storage area that our programs can manipulate
Flow control are divided into
Loops
For loop
A for loop is a repetition control structure that allows you to efficiently write a loop that needs to execute a specific number of times.
While loop
A while loop statement repeatedly executes a target statement as long as a given condition is true
Do ... While loop
Unlike for and while loops, which test the loop condition at the top of the loop, the do...while loop checks its condition at the bottom of the loop.A do...while loop is similar to a while loop, except that a do...while loop is guaranteed to execute at least one time.
Conditions
Conditioning
Loops
If Statement
An if statement consists of a boolean expression followed by one or more statements.
If ... else Statement
An if statement can be followed by an optional else statement, which executes when the boolean expression is false.
Data Types
int : for integer numbers like 1,2,3,...
double : for float numbers like 1.2 , 2.5, ......
char : used for characters like a,b,c,d,.....
Variable Name :
To set a name for a variable you should follow these conditions
1- variable name can contain letters and digits, but Should Start with letter.
2 There is no spaces in the variable name
3- It can contain only _ as special character
Visual Programming
The nodes are divided into
Is a very simple way for programming via Drag and Drop
Input Nodes
Programming via coding
In programming, code is a term used for the statements written in a particular programming language
There are many programming languages
We are using
Output Nodes
Snowball Software
Snowball software uses drag and drop visual programming which is the easiest technique for arduino C language.
Other Features
Flow Nodes
Any Questions ?
E - Robot Software Oreintation