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 IOexpander #90

Merged
merged 4 commits into from
Mar 8, 2025
Merged

Add IOexpander #90

merged 4 commits into from
Mar 8, 2025

Conversation

oxothnk423
Copy link
Contributor

Add support for IOexpander in variants (HW v3.2.5+ has IOexpander)

Moved speaker updates to main system timer (instead of its own ISR timer). This avoids simultaneous I2C calls and conflicts. (I2C needed to set volume pins for speaker on HW v3.2.5)

putting speaker updated on main timer (instead of it's own ISR) avoids I2C conflicts with other peripherals

I2C expander added and supported in variants
@oxothnk423 oxothnk423 requested a review from scottyob March 5, 2025 19:20
Copy link
Collaborator

@scottyob scottyob left a comment

Choose a reason for hiding this comment

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

  • Remove src/libraries/TCA9555. No need to have both this and the platformio libs. Once that's done, looks good to me!

void ioexDigitalWrite(bool onIOEX, uint8_t pin, uint8_t value) {
// if we're writing a pin on the IO Expander
if (onIOEX) {
bool result = IOEX.write1(pin, value);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove result if not doing anything with it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

redundant lib files removed; thanks for reminder!

@oxothnk423 oxothnk423 merged commit 7bd18fe into main Mar 8, 2025
1 check passed
@oxothnk423 oxothnk423 deleted the AddIOexpander branch March 8, 2025 22:39
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