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

Set the pins (optionally) in the ctor. #71

Merged
merged 3 commits into from Oct 23, 2020

Conversation

CelliesProjects
Copy link
Contributor

@CelliesProjects CelliesProjects commented Oct 23, 2020

This should solve #70 and possibly CelliesProjects/wm8978-esp32/issues/4

So now you can use:

Audio audio(BCLK, LRC, DOUT);

as a constructor.
Or use

Audio audio;

as before and default to 26,25,27.

If no pins are given, the ctor will default to BLCK=26, LRC=25, DOUT=27.

This should be compatible with existing code.

M5Stack Node plays pretty good (On a Fire, not tested on Grey).

The test sketches from ESP32-I2SAudio also work.

Please test this on M5Stack Node.

If no pins are given, the ctor will default to BLCK=26, LRC=25, DOUT=27.

This *should* be compatible with existing code.
@CelliesProjects
Copy link
Contributor Author

@schreibfaul1 If you are satisfied with this PR please merge this PR as a squash merge.

@schreibfaul1 schreibfaul1 marked this pull request as ready for review October 23, 2020 17:44
@schreibfaul1 schreibfaul1 merged commit b9f787e into schreibfaul1:master Oct 23, 2020
@CelliesProjects
Copy link
Contributor Author

Thanks!

@CelliesProjects CelliesProjects deleted the test_pins_m5 branch October 23, 2020 22:50
hmax42 pushed a commit to hmax42/ESP32-audioI2S that referenced this pull request Jun 20, 2021
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.

None yet

2 participants