I save snippets of code in this repository that I use when working with MicroPython.
To understand what each snippet does, please refer to the README file inside the corresponding folder.
One of the main reasons I created this repository is that I frequently lose code from previous projects and have to rewrite everything from scratch. To avoid this, I decided to create some well-structured code snippets that I can reuse in future projects. I hope this repository helps you as much as it helps me.
It's worth noting that not all code snippets are related to sensors. Some are more generic or encapsulate specific functionalities, such as loading a configuration file, handling WiFi connections, making HTTP requests, and more.
- Unless specified otherwise, all examples assume MicroPython v1.23.0 (2024-06-02) running on a Raspberry Pi Pico.
- All snippets and classes are provided AS-IS. Although I have tested them, they have not undergone thorough testing. Use them at your own risk. No warranty or guarantee is provided.
- Each snippet folder includes a Pico pinout image, so everything you need is inside the main folder of the sensor you are working with.