Want to create interactive content? It’s easy in Genially!

Get started free

Intro to programming Arduino

cselmatamarit

Created on January 1, 1

Start designing with a free template

Discover more than 1500 professional designs like these:

Transcript

What is programming?

Some contents are extracted from arduino.cc website, which are released under Creative Commons Attribution ShareAlike 3.0

Programming language

IDE (Integrated development environment)

Programming language

Machine language

Assembly language

Arduino basic structure

Example

What is that?

A variable?

Variables

boolean

byte

int

char

string

Variable types

float

long

A function is a piece of code that we group in order to be able to use it anytime in the program. The typical case for creating a function is when one needs to perform the same action multiple times in a program.

Functions

Our function needs to be declared outside any other function, so "myMultiplyFunction()" can go either above or below the "loop()" function.

To "call" our function, we pass it parameters of the datatype that it is expecting: k = myMultiplyFunction(i, j); where k is the result of the function, and i and j are the parameters (in this case numbers to multiply)

if

if...else

Algorithms

for