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

Passed wire parameter to PinsI2C constructor #12

Merged
merged 1 commit into from
Feb 27, 2024
Merged

Passed wire parameter to PinsI2C constructor #12

merged 1 commit into from
Feb 27, 2024

Conversation

FatherMarco1971
Copy link
Contributor

  void addI2C(PinFunction function, GpioPin scl, GpioPin sda, int port = -1,
              uint32_t frequency = 100000, TwoWire &wire = Wire) {
    PinsI2C pin(function, scl, sda, port, frequency, wire);
    addI2C(pin);
  }```

the wire parameter passed to addI2C function was not passed to PinsI2C constructor.
I added it, i think it's correct.

@pschatzmann pschatzmann merged commit b3d2477 into pschatzmann:main Feb 27, 2024
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