ESP32 / ESP8266 Arduino: Printing numbers to serial in different bases

In this tutorial, we will check how we can print numbers to the serial port using different bases, more specifically in binary, octal and hexadecimal. The tests on the ESP32 were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board. The tests on the ESP8266 were performed on a DFRobot’s ESP8266 FireBeetle board.
Continue reading “ESP32 / ESP8266 Arduino: Printing numbers to serial in different bases”

Advertisements

ESP32 / ESP8266 Arduino: Conditional operator

In this tutorial we will analyze how to use the C++ conditional operator, also known as the ternary operator, on the Arduino core running both on the ESP32 and on the ESP8266. The tests on the ESP32 were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board. The tests on the ESP8266 were performed on a DFRobot’s ESP8266 FireBeetle board.
Continue reading “ESP32 / ESP8266 Arduino: Conditional operator”