Demo RP2040 raspberry pico using PIO in micropython
Hold Button
Implements a button, which fires interrupts if pressed , hold and released.
Details: Hold Button
Frequency Measurement
Measure the duration between signal change from low to high and high to low for a input pin. This allows frequency and duty cycle measurements. Accuracy is better than 0.005% for a frequency up to 1000 Hz.
Details: Frequency Measure
I use the vscode extension MicroPico.