Distinguish between () and {} when creating objects Prefer nullptr to 0 and NULL Prefer alias declarations to typedefs Avoiding such medical
Deducing Types
Template universal reference not pointer or reference Array Arguments Auto Decltype why auto and you can use auto instead
CONSTEXPR
Declare functions noexcept if they won’t emit exceptions Values known during compilation are privileged. They may be placed in read-only memory, for
PWM with Arduino and ESP32
analogWrite for ArduinoSyntax Parameterspin: the Arduino pin to write to. Allowed data types: int.value: the duty cycle: between 0 (always off) and 255
SPI Protocol
To write code for a new SPI device you need to note a few things: What is the maximum SPI speed your
Examples 3
Q1 Q2 Q3 Q4 Q5
FreeRTOS timer
API How it Works The following diagram gives an overview, how Software Timers in FreeRTOS are implemented: FreeRTOS Software Timers There is
FreeRTOS Semaphore
What is a Semaphore?Semaphore is a technique for synchronizing two/more task competing for the same resources. When a task wants to use
Arduino and Esp32 Interrupts (ISR)
Attaching Interrupt to a GPIO Pin In Arduino IDE, we use a function called attachInterrupt() to set an interrupt on a pin by pin
FreeRTOS Queue
API Introduction The objective of this post is to give an introduction to FreeRTOS queues, using the ESP32 and the Arduino core.
ESP32 FreeRTOS Tasks
API Tasks The main job of all operating systems is to run and coordinate user tasks. Like many operating systems, the basic
RTOS (Real Time Operating System)
What is Real Time Operating System (RTOS)- How it works? When we hear the word “Operating System” the first ones that
Examples 2
#EX1 #EX2 #EX3 #EX4 #EX5
Arduino AND ESP32 Wire Library
functions begin()Initiate the Wire library and join the I2C bus as a master or slave. This should normally be called only once.ParametersArduinoaddress: the 7-bit
I2C Protocol
I2C combines the best features of SPI and UARTs. With I2C, you can connect multiple slaves to a single master (like SPI) and