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: Lambda functions

Introduction The objective of this post is to explain how to use lambda functions in MicroPython and their difference regarding regular functions. Lambdas are a concept supported in many other programming languages, such as JavaScript and C#, and in a more formal definition they correspond to anonymous functions. So, in MicroPython, this means that we …