Skip to content

Conversation

@anardine
Copy link

@anardine anardine commented Sep 4, 2025

Problem:

The i2c_init() function was not being called in main, which was setting TWBR to a wrong value if a different value of clock was used (in my case, 8MHz)

Solution:

Implemented i2c_init() and defined a standard value for F_CPU if the user is using a different value

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.

1 participant