Skip to content

Implement audiobusio and enhance PIO for it #4251

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

Merged
merged 3 commits into from
Feb 25, 2021

Conversation

tannewt
Copy link
Member

@tannewt tannewt commented Feb 23, 2021

This adds I2SOut and PDMIn support via PIO.

StateMachines can now:

  • read and read while writing
  • transfer in 1, 2 or 4 byte increments
  • init pins based on expected defaults automatically
  • be stopped and restarted
  • rxfifo can be cleared and rxstalls detected (good for tracking when
    the reading code isn't keeping up)

Fixes #4162

This adds I2SOut and PDMIn support via PIO.

StateMachines can now:
 * read and read while writing
 * transfer in 1, 2 or 4 byte increments
 * init pins based on expected defaults automatically
 * be stopped and restarted
 * rxfifo can be cleared and rxstalls detected (good for tracking when
   the reading code isn't keeping up)

Fixes micropython#4162
This causes an exception when setting a state machine too slow or
too fast.

Fixes micropython#4222
Copy link

@jepler jepler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks fine, didn't test

@jepler
Copy link

jepler commented Feb 25, 2021

and it still works with my neopixel code yay

@jepler jepler merged commit abfacc3 into adafruit:main Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pio: clean up FIFO-stuffing code
2 participants