csci3575lec03 (1)
csci3575lec03 (1)
csci3575lec03 (1)
Digital pins
D0 ~ D13
Analog pins
A0 ~ A5
https://www.hackerearth.com/blog/developers/a-tour-of-the-arduino-uno-board/
MICRO-CONTROLLER BLOCK DIAGRAM (OVERSIMPLIFIED)
Reading:
Datasheet,
Section 2 and
6.1,6.2
https://www.tutorialspoint.com/cplusplus/cpp_data_types.htm
VARIABLES IN C++
FUNCTIONS AND FUNCTION CALLING IN C++
https://www.programiz.com/cpp-programming/online-compiler/
https://www.incredibuild.com/blog/best-c-ides
OPERATORS IN C++
❑ = Assignment
• * pointer
• & reference
LOGICAL AND [&&]
Binary operator, true if both operands are true/non-zero
LOGICAL OR [||], NOT[!]
|| binary operator, true when at least one operand is non-zero
! Unary operator, reverses the input
BIT-WISE OPERATIONS [&]
[A bit of output for each pair of input bits: 1 (true) or 0 (false)]
00001010
& 00000011
----------
0??????0
BIT-WISE OPERATIONS [|]
[A bit of output for each pair of input bits: 1 (true) or 0 (false)]
00001010
| 00000011
----------
0??????1
LOGICAL VS BITWISE
BITWISE OPERATION (LEFT SHIFT)
BITWISE OPERATIONS (RIGHT SHIFT)
LOGICAL AND BITWISE OPERATIONS
LOGICAL AND BITWISE OPERATIONS