Skip to content
New issue

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

RP2040 busio.SPI() fails to note initial SPI frequency #5836

Closed
dhalbert opened this issue Jan 11, 2022 · 0 comments · Fixed by #5987
Closed

RP2040 busio.SPI() fails to note initial SPI frequency #5836

dhalbert opened this issue Jan 11, 2022 · 0 comments · Fixed by #5987
Assignees
Labels
bug rp2040 Raspberry Pi RP2040
Milestone

Comments

@dhalbert
Copy link
Collaborator

dhalbert commented Jan 11, 2022

CircuitPython version

7.1.0

Code/REPL

Adafruit CircuitPython 7.1.0 on 2021-12-28; Adafruit QT Py RP2040 with rp2040
>>> import busio,board
>>> spi = busio.SPI(board.SCK, board.MOSI, board.MISO)
>>> spi.frequency
>>> spi.try_lock()
True
>>> spi.configure(baudrate=250000)
>>> spi.frequency
250000

Behavior

as shown

Description

No response

Additional information

The constructor forgets to set self->real_frequency and self->target_frequency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug rp2040 Raspberry Pi RP2040
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant