Skip to content

Adafruit Metro RP2350 analogbufio #10201

Closed
@mikeysklar

Description

@mikeysklar

CircuitPython version and board name

CircuitPython 9.2.6 on 2025-03-23; Adafruit Metro RP2350

Code/REPL

import board
import analogbufio
import array

length = 1000
mybuffer = array.array("H", [0x0000] * length)
rate = 500000
adcbuf = analogbufio.BufferedIn(board.A0, sample_rate=rate)
adcbuf.readinto(mybuffer)
adcbuf.deinit()
for i in range(length):
    print(i, mybuffer[i])

Behavior

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
Traceback (most recent call last):
  File "code.py", line 8, in <module>
ValueError: Invalid pins

Description

Metro RP2350 fails to run analogbufio example code from the docs.

Code works as expected on Feather RP2040, Feather RP2350 or switching to analogio.

Additional information

Forum issue found by mattblair

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions