- pytest, ruff, pyright
skylosfor dead code checkinguv-securefor dependency auditing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Arduino.h> | |
| #include <U8x8lib.h> | |
| #include "DHT.h" | |
| #define DHTPIN 0 // what pin we're connected to | |
| // Uncomment whatever type you're using! | |
| // #define DHTTYPE DHT11 // DHT 11 | |
| #define DHTTYPE DHT22 // DHT 22 (AM2302) | |
| //#define DHTTYPE DHT21 // DHT 21 (AM2301) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Related to https://github.com/pydata/xarray/issues/10135 | |
| Result (in VS Code debugger): | |
| Shape | NumPy → Polars | NumPy → Pandas → Polars | |
| ----------------------------------------------------------------- | |
| 10,000 x 10 | 0.003997 s | 0.033097 s | |
| 10,000 x 200 | 0.002424 s | 0.050915 s | |
| 100,000 x 10 | 0.000278 s | 0.021541 s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import pandas as pd | |
| import polars as pl | |
| import time | |
| from memory_profiler import memory_usage | |
| # Array shapes to test | |
| shapes = [ | |
| (10_000, 10), | |
| (10_000, 200), |
Main guide: https://etoast.net/posts/agilent_repair/
Repairing the power supply is not very feasible.
- Power Supply: RPSG-160-12 [1x]
- RPSG-160-12 Datasheet
- Install VS Code.
- In VS Code, install the "MicroPico" extension.
- Download the MicroPython firmware from: https://micropython.org/download/RPI_PICO/RPI_PICO-latest.uf2
- Connect the RP2040-Zero to the computer. If a USB Drive doesn't appear, press: reset-down, boot-down, reset-up, boot-up.
- Open the USB Drive that appeared. Copy on the MicroPython uf2 file. Wait 30 seconds.
- Optional: Run
pip install micropython-rp2-rpi_pico-stubsto install Python type checking helpers.
- This install the type hints required for the
import machinepackage.
NewerOlder