We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adafruit CircuitPython 7.1.0-rc.0 on 2021-12-23; Adafruit Metro M4 Express with samd51j19
# testing pdm mic import time import board from ulab import numpy as np from audiobusio import PDMIn, I2SOut from neopixel import NeoPixel neo = NeoPixel(board.NEOPIXEL, 1, brightness=0.1) YELLOW = 0xFFFF00 RED = 0xFF0000 GREEN = 0x00FF00 # M4 I2S pins are fixed mic = PDMIn(clock_pin=board.D3, data_pin=board.D1, sample_rate=16000, bit_depth=16) buffer = np.zeros(256, dtype=np.uint16) while True: neo[0] = YELLOW time.sleep(1) neo[0] = RED mic.record(buffer, len(buffer)) neo[0] = GREEN time.sleep(5)
Expected: NeoPixel is yellow in warmup, red while recording, then green.
Actual: NeoPixel is yellow, then sticks on red.
Call to mic.record() never returns.
I can still read and write the CIRCUITPY drive, but I have to reset the board to break out of mic.record().
mic.record()
This works as expected with 7.0.0, but hangs as documented here on anything after 7.1.0-rc.0.
No response
The text was updated successfully, but these errors were encountered:
Same code, modulo pin assignments, works on latest Feather RP2040.
Sorry, something went wrong.
I think @dhalbert mentioned this in the CircuitPython Weekly earlier today.
Loaded new build, works as expected! Thank you.
[just a sighting] Metro M4 board stuck in PDMIn.record() sometime during file access (circup update --all).
dhalbert
Successfully merging a pull request may close this issue.
CircuitPython version
Code/REPL
Behavior
Expected: NeoPixel is yellow in warmup, red while recording, then green.
Actual: NeoPixel is yellow, then sticks on red.
Call to mic.record() never returns.
I can still read and write the CIRCUITPY drive, but I have to reset the board to break out of
mic.record()
.This works as expected with 7.0.0, but hangs as documented here on anything after 7.1.0-rc.0.
Description
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: