APPREHENDING MICROCONTROLLER PLATFORM AND SOFTWARE Flashcards
one of the most important statement in programming.
IF- ELSE Conditional statements
It gives you the ability to control the flow of your program, letting it make decisions on what statement to execute.
IF- ELSE Conditional statements
often called as tactile switch
pushbuttons
momentary switches that are capable of turning any electronic
device to either on or off state.
pushbuttons
Equal to
A is equal to B
==
A==B
Not equal to
A is not equal to B
!=
A!=B
Less than
A is less than B
<
A<B
greater than
A is greater than B
> A>B
less than or equal to
A is less than or equal to B
<=
A<=B
greater than or equal to
A is greater than or equal to B
> =
A>=B
Only true if BOTH operands are true
Syntax: &&
Operator: Logical AND
True if EITHER of the operand is true
Syntax: ||
Operator: Logical OR
True if the operand is false
Syntax: !
Operator: Logical NOT
Comparison Operators
equal to, not equal to, less than, greater than, less than or equal to, greater than or equal to
Boolean Operators
Logical AND, Logical OR, Logical NOT
allows you to perform some task depending on whether given condition is true or false.
if () statement
used when condition in if statement is false.
else statement
allows multiple conditions/test to be group together in a single loop. You can use unlimited number of else if branch in a single loop.
else if () block
essential in every computing devices, it helps them do task in random manner.
Generating random numbers
actually generated using an algorithm that produces numbers that appear to be random, but actually it follows a sequence.
Pseudo- random
initialize a random number generator with a random input such as analogRead() on an unconnected pin to alter the random list generated by the random().
randomSeed()
The number you pass to randomSeed() function is called a
“___” and this number must be in integer or long.
seed