Skip to content

Enable custom i2c pins#17

Open
MrAPierce wants to merge 2 commits intoEvanBottango:mainfrom
MrAPierce:main
Open

Enable custom i2c pins#17
MrAPierce wants to merge 2 commits intoEvanBottango:mainfrom
MrAPierce:main

Conversation

@MrAPierce
Copy link

this update adds define I2C_CUSTOM_PINS, I2C_SDA, I2C_SCL to enable custom pin to be used for i2c communication.

this update adds define I2C_CUSTOM_PINS, I2C_SDA, I2C_SCL to enable custom pin to be used for i2c communication.
Copy link
Owner

@EvanBottango EvanBottango left a comment

Choose a reason for hiding this comment

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

Super appreciate the pull request! No objection to the core idea, just want to move the I2C_CUSTOM_PINS flag from modules to config. Thanks!

Copy link
Owner

Choose a reason for hiding this comment

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

👍

Copy link
Owner

Choose a reason for hiding this comment

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

I like where your head is at, but this flag belongs in BottangoArduinoConfig.h instead of BottangoArduinoModules.h

Modules File == Enable and disable major functionality blocks.
Config File == tweak the operation of functionality.

Since this doesn't enable a major functionality block, but just tweaks how the pcadriver setup is called, feels like it's a config option, not a module.

Copy link
Author

Choose a reason for hiding this comment

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

Ok, now I see where your coming from, was unsure what to define where.

Enable custom i2c Pins via ArduinoConfig.
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