Search found 2 matches
- Sat May 04, 2024 2:28 pm
- Forum: General Discussion and Questions
- Topic: Using machine Pin class no way to get pin number or channel when running on Pi Pico?
- Replies: 8
- Views: 68550
Re: Using machine Pin class no way to get pin number or channel when running on Pi Pico?
I could not get those to work, I wrote the following function: def extract_gpio_pin(pin_struct): # Use a regular expression to find the GPIO number in the pin struct since .id() and .pin() don't work match = re.search(r"GPIO(\d+)", str(pin_struct)) if match: # Convert the extracted number to an inte...
- Sat Oct 23, 2021 2:16 pm
- Forum: Programs, Libraries and Tools
- Topic: Play a WAV file on the Pico
- Replies: 1
- Views: 2392
Play a WAV file on the Pico
Hi everyone, I am working on a CoderDojo project for students using the Raspberry Pi Pico. Our Cylon Pumpkin needs to play some sounds and say a few short phrases when motion is detected. I have an SD card reader working on the Raspberry Pi Pico but I can't seem to find out how to play a WAV file us...