Tag: MicroPython
-
Concatenating Strings in MicroPython on Raspberry Pi Pico
In programming, concatenation is the process of combining two or more strings into a single string. This operation is commonly used in MicroPython on Raspberry Pi Pico to create dynamic messages and strings that can be used in various applications. In this blog post, we will explore the concept of string concatenation in MicroPython and…
-
String manipulation in MicroPython on Raspberry Pi Pico
String manipulation is a common task in programming, including in MicroPython on Raspberry Pi Pico. It involves modifying, searching, and extracting data from strings. In this blog post, we will explore string manipulation techniques in MicroPython and how to use them effectively. Modifying Strings In MicroPython, strings are immutable, which means that once a string…
-
Understanding string data types in MicroPython on Raspberry Pi Pico
Strings are one of the most commonly used data types in programming, including in MicroPython on Raspberry Pi Pico. In this blog post, we will explore the concept of string data types in MicroPython and how to work with them. A string is a sequence of characters enclosed within single or double quotes. It can…
-
Introduction to strings in MicroPython on Raspberry Pi Pico
Strings are a fundamental data type in programming, and they are no exception in MicroPython on Raspberry Pi Pico. A string is a sequence of characters enclosed in single or double quotes. Strings are used to represent text in programs, and they can be manipulated in various ways to achieve different results. In this blog…
-
Functions in MicroPython on Raspberry Pi Pico
Functions are a way to make your code more organized and easier to understand. They are like little machines that you can use over and over again in your code. To create a function, you need to give it a name and then write what it does. You can also give it some inputs, like…
-
How to interface 0.96″ OLED display with Raspberry Pi Pico without library using I2C in Micropython
The 0.96-inch OLED screen is monochromatic blue. Which means it has only blue light. You can either switch on the led to make the text blue or you can invert the in which background is blue and the text black. The OLED uses a ssd1306 IC. Which is a 128 x 64 Dot Matrix OLED/PLED…
-
Using Loops to Iterate Over Data Structures in MicroPython on Raspberry Pi Pico
MicroPython on Raspberry Pi Pico provides several data structures for storing and manipulating data. These include lists, tuples, sets, and dictionaries. Loops are a powerful tool for iterating over these data structures and performing operations on their elements. Let’s take a look at some examples of how loops can be used to iterate over data…
-
Loop Control Statements in MicroPython on Raspberry Pi Pico
Loop control statements are used to alter the normal flow of execution within loops. They can be used to skip iterations or terminate loops prematurely based on certain conditions. In MicroPython on Raspberry Pi Pico, there are three loop control statements: break, continue, and pass. Here’s an example: In this example, the loop will iterate…
-
Nested Loops in MicroPython on Raspberry Pi Pico
Nested loops in MicroPython on Raspberry Pi Pico refer to the use of one loop inside another loop. The inner loop is executed multiple times for each iteration of the outer loop. This technique is useful when we want to perform repetitive tasks or calculations on a set of data. To create nested loops in…
-
For Loops in MicroPython on Raspberry Pi Pico
For loops are one of the most commonly used loops in programming, including MicroPython on Raspberry Pi Pico. They allow you to repeat a set of instructions a specific number of times, making your code more efficient and concise. In MicroPython, a for loop is used to iterate over a sequence of values, such as…