Comparison operators in MicroPython are used to compare two values. They return a boolean value, either True or False, based on the comparison. These operators are commonly used in control …
micropython
-
-
Logical operators in MicroPython allow you to combine or manipulate boolean values (True and False). These operators are essential when making decisions in your code, particularly when working with conditions …
-
In MicroPython, while loops allow you to execute a block of code repeatedly as long as a given condition is True. This tutorial will guide you through the basics of …
-
Bitwise operators in MicroPython are used to manipulate individual bits within integer values. These operators work directly on the binary representations of numbers, allowing you to perform operations like AND, …
-
Arithmetic operators are essential in MicroPython, enabling basic mathematical operations like addition, subtraction, multiplication, and more. These operators are straightforward to use, and this tutorial will walk you through the …
-
In MicroPython, for loops are an essential control flow structure used to iterate over sequences such as lists, tuples, dictionaries, ranges, or even strings. They are used when you need …
-
MicroPython, just like Python, supports dictionaries, which are a built-in data type used to store data values in key-value pairs. A dictionary in MicroPython is unordered, mutable (can be changed), …
-
In this example we connect a PCF8574 expander to an ESP32 board, in this case we I used a Lolin32 Description This 8-bit input/output (I/O) expander for the two-line bidirectional …
-
In this example we will look at the 2 light sensors that are fitted to the bpi:bit. We will also see how you to use Micropython to return a reading …
-
In this article we look at some of the features of the ESP32 and how you can use these in Micropython. In particular we focus on the internal hall sensor, …




