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

Add support for custom I2C SDA and SCL pins #18

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

gitcnd
Copy link

@gitcnd gitcnd commented Jan 6, 2024

Describe the scope of your change--i.e. what the change does and what parts of the code were modified.

Added feature to let users specify custom SDA and SCL pins.

No breaking changes were made. Existing code which does not specify any pins will run unchanged.

Describe any known limitations with your change.

none known

Please run any tests or examples that can exercise your modified code.

Tested and Working on ESP32 (Wemos D1 Mini HW655 using multiple arrangements of pins 5, 16, 17, 18, 21, 22)

NOTE1 - existing code was attempting to cast as (byte) arguments that were expected to be (int) within esp32 Wire lib
NOTE2 - existing code was attempting to pass "True" bool into (int) datatype within esp32 Wire lib
The above 2 issues were fixed to build this successfully on esp32

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.

2 participants