Skip to content

Conversation

robberwick
Copy link
Contributor

Add definitions for the QW/ST connector SDA & SCL pins

addresses #889

Add definitions for the QW/ST connector SDA & SCL pins
@ZodiusInfuser
Copy link
Member

ZodiusInfuser commented Jan 8, 2024

Thanks for this. As mentioned in issue #889 the intention was for people to access these pins via our I2C class, which has many convenience functions for dealing with I2C comms. I realise though that there is no harm in having these pins defined in motor::MOTOR2040 for those wanting to roll their own solution though.

Before I approve this PR, could you amend the following comments. See below review.

Also, could you include the same three lines for SERVO2040 too please?

Add `I2C_INT` to `motor2040.hpp` and put pin defs in numeric order.
Add pin definitions for `I2C_INT`, `I2C_SDA`, and `I2C_SCL` to `servo2040.hpp`
@robberwick
Copy link
Contributor Author

@ZodiusInfuser Just checking this is ok, and there's nothing else you want me to do before it's mergeable?

@ZodiusInfuser ZodiusInfuser merged commit 8ca47d6 into pimoroni:main Feb 13, 2024
@ZodiusInfuser
Copy link
Member

Sorry for the delay. Yes, this is good. Thanks for the contribution!

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