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

i2s: fix pin offset for 8bit parallel on i2s1 #2886

Merged
merged 5 commits into from
Jan 17, 2025

Conversation

liebman
Copy link
Contributor

@liebman liebman commented Jan 4, 2025

Thank you for your contribution!

We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:

Submission Checklist 📝

  • I have updated existing examples or added new ones (if applicable).
  • I have used cargo xtask fmt-packages command to ensure that all changed code is formatted correctly.
  • My changes were added to the CHANGELOG.md in the proper section.
  • I have added necessary changes to user code to the Migration Guide.
  • My changes are in accordance to the esp-rs API guidelines

Extra:

Pull Request Details 📖

Description

Fix a bug introduced in this commit, i2s1 needs a pin offset of 8 only for 16bit.

Testing

Logic analyzer and a WIP Hub75 driver for SmartMatrix V0 hardware (uses a latch to use less ram & pins)

@Dominaezzz
Copy link
Collaborator

Is the pin offset strictly needed? I suppose a user could use the upper half of the 16 bit value to send the data.

(Was looking at #2436 (comment))

Can you keep the esp-idf link as documentation?

@liebman
Copy link
Contributor Author

liebman commented Jan 5, 2025

I was mistaken - its I2S0 that does not support true 8bit.

If I follow the logic here and always use 8 then for 8 bit we only get the odd bytes each repeated twice. Maybe they do something different in initialization?

I found this topic and a version here that has fixes for 8bit on I2S1. This is where the +8 only for 16bit is from.

@liebman liebman force-pushed the fix-8bit-parallel-i2s1-main branch from 3250630 to 4fa7295 Compare January 11, 2025 14:24
Copy link
Contributor

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

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

What a weird peripheral

@jessebraham jessebraham added this pull request to the merge queue Jan 16, 2025
@jessebraham jessebraham removed this pull request from the merge queue due to a manual request Jan 16, 2025
@MabezDev MabezDev added this pull request to the merge queue Jan 17, 2025
Merged via the queue into esp-rs:main with commit da7dda3 Jan 17, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants