Skip to content

Conversation

@sfe-SparkFro
Copy link
Collaborator

No description provided.

Copy link

@SFE-Brudnerd SFE-Brudnerd left a comment

Choose a reason for hiding this comment

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

Overall good, needs a few changes.

@SFE-Brudnerd
Copy link

One other thing, you should add an address getter since you have a setter.

Change constants to Hungarian notation
Move _theBus initializer into header
Change changeAddress() to take a `const uint8_t&`
Remove under read check, since that will be caught by previous check of err
Add address getter
Copy link

@SFE-Brudnerd SFE-Brudnerd left a comment

Choose a reason for hiding this comment

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

Looks good!

Copy link
Contributor

@edspark edspark left a comment

Choose a reason for hiding this comment

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

Nothing to add, this looks great Dryw.

Copy link

@MadisonC-SparkFun MadisonC-SparkFun left a comment

Choose a reason for hiding this comment

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

Code looks great! Nice job :)

Copy link
Member

@gigapod gigapod left a comment

Choose a reason for hiding this comment

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

Overall looks great.

What I suggested are easy tweaks - for readability and future understanding.

In computing number of addresses, divide by size of elements
Check err against OK constant
@sfe-SparkFro sfe-SparkFro merged commit edc5e99 into main Dec 21, 2023
@sfe-SparkFro sfe-SparkFro deleted the v1.0.0 branch December 21, 2023 21:50
@sfe-SparkFro
Copy link
Collaborator Author

Thanks all! Library has been published and merged into Arduino's library registry: arduino/library-registry#3782

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.

6 participants