Skip to content

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