ESP32 / ESP8266 Arduino: Using structs

The objective of this post is to explain how to define structures on the Arduino core. This was tested 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. Introduction The objective of …

ESP32 / ESP8266 Arduino: Serial communication with Python

The objective of this post is to explain how to establish a Serial connection between a Python program and an Arduino program running on the ESP8266 and on the ESP32. The tests on the ESP32 were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board.   Introduction The objective of this post is to explain how to …

ESP32 / ESP8266 Arduino: The auto keyword

The objective of this post is to explain the usage of the auto keyword when programming for the ESP8266 and ESP32 on the Arduino core. The ESP32 tests were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board. Introduction The objective of this post is to explain the usage of the auto keyword when programming for the …

ESP32 / ESP8366 Arduino: Creating a simple class

The objective of this post is to explain how to create a very simple class and instantiate an object of it in the Arduino core. This code was tested on both the ESP32 and the ESP8266. The ESP32 tests were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board. Introduction The objective of this post is …

ESP32 / ESP8266 MicroPython: String split method

The objective of this post is to explain how to use the split method to separate strings in sub-strings accordingly to a given separator string. This tutorial was tested 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. Introduction The objective of this …

ESP32 / ESP8266 MicroPython: Working with dictionaries

Introduction The objective of this post is to explain how to use dictionaries in MicroPython. Naturally, the functionalities that we will see here also apply to Python, since dictionaries are one of its basic data structures. Please note that this should be an introductory tutorial about MicroPython dictionaries. Thus, we will not be covering the …

ESP32 / ESP8266 MicroPython: Applying filter function to lists

The objective of this post is to explain how to use the filter function with lists in MicroPython. This tutorial was tested 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. Introduction The objective of this post is to explain how to use …

ESP32 / ESP8266 MicroPython: Applying map function to lists

The objective of this post is to explain how to use the map function to perform operations over MicroPython lists. This tutorial was tested 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. Introduction The objective of this post is to explain how …