Skip to content

Conversation

@me-no-dev
Copy link
Member

Redo of: #8617

@VojtechBartoska VojtechBartoska added the Area: Peripherals API Relates to peripheral's APIs. label Oct 5, 2023
@me-no-dev me-no-dev marked this pull request as draft October 6, 2023 10:51
if(!perimanSetPinBus(_rx_din3, ESP32_BUS_TYPE_I2S_PDM, (void *)(this))){ goto err; }
}
break;
}
Copy link
Member Author

Choose a reason for hiding this comment

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

instead of having 4 cases one after another, have 4 separate private methods to init each type.

Copy link
Member

Choose a reason for hiding this comment

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

Done. A lot cleaner code now :)

@me-no-dev
Copy link
Member Author

me-no-dev commented Oct 16, 2023

Don't forget to fix the examples :) Also add some for the different modes.

@me-no-dev me-no-dev marked this pull request as ready for review October 18, 2023 08:58
@me-no-dev me-no-dev merged commit 601efed into master Oct 18, 2023
@me-no-dev me-no-dev deleted the feature/i2s_sr branch October 18, 2023 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Peripherals API Relates to peripheral's APIs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants