Skip to content

FIX: Library does not work with small (2-16Kbits) eeprom devices #11

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

Merged
merged 1 commit into from
Jan 7, 2022

Conversation

quarcko
Copy link
Contributor

@quarcko quarcko commented Jan 7, 2022

For memory chips smaller than 16kbits you need to send only 1 packet (8bits) of adress via I2C.
This fix checkes for defined memory size and based on this either sends 16bit adress or 8bit address.

Tested on 2Kbits EEPROM: HT24LC02

For memory chips smaller than 16kbits you need to send only 1 packet (8bits) of adress via I2C.
This fix checkes for defined memory size and based on this either sends 16bit adress or 8bit address.
@nseidle
Copy link
Member

nseidle commented Jan 7, 2022

Nice fix. Nice first PR. Thanks for the contribution!

@nseidle nseidle merged commit 48f196f into sparkfun:master Jan 7, 2022
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