To join the Session: Link
27 Jan, 2021 | 4:00 pm to 6:00 pm | Wednesday
In this Session we did the followings,
We explored PORTx Register.
We wrote bare metal C code and also Arduino code for blinky.
We compare the code size of both bare metal C code and Arduino Sketch (Code).
We discussed the OR and Shift operation on Register (Byte) value to set the particular bit.
Below are some snaps of the sessions:
One of interesting thing we discover here is the code size or how much memory does the bare metal C code will consume as compared to Arduino Code for the same blinky program.
Here are two code compiled in the same Arduino IDE:
Bare Metal C code
Arduino Sketch (Code)