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

🚑 Fix initialization in bit_bang_i2c constructor #37

Merged
merged 1 commit into from
Aug 18, 2024
Merged

Conversation

kammce
Copy link
Member

@kammce kammce commented Aug 17, 2024

Critical bug fix in bit_bang_i2c that can lead to device damage. The output pins NEED to be set as open drain in order to not cause bus contention which can damage devices and cause short circuits.

The constructor now properly configures the sda and scl output pins and configures and performs initial configuration.

Resolves #36

Critical bug fix in bit_bang_i2c that can lead to device damage. The
output pins NEED to be set as open drain in order to not cause bus
contention which can damage devices and cause short circuits.

The constructor now properly configures the sda and scl output pins and
configures and performs initial configuration.

Resolves #36
@kammce kammce merged commit f1c93bd into main Aug 18, 2024
4 checks passed
@kammce kammce deleted the fix-bit-bang-i2c branch August 18, 2024 16:05
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.

hal::soft::bit_bang_i2c does not configure output pins to open drain
1 participant