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

Optimizations for I2C library? #13

Open
RobTillaart opened this issue Dec 21, 2023 · 0 comments
Open

Optimizations for I2C library? #13

RobTillaart opened this issue Dec 21, 2023 · 0 comments

Comments

@RobTillaart
Copy link

Hi,

First, thank you for your excellent library!

As I was in the need for speed, I investigated if I could write a faster I2C liquid display library.
After a week the code (0.1.2) is reasonable stable and performance is meeting my needs.

It might be interesting to look at some of the optimizations I made to include in your I2C part.
Most important the library send a byte in one transaction of 5 bytes instead of using 4 transaction (one per nibble).
The PCF8574 handles this nicely.
Furthermore as the 4 data pins are in ascending order one can prepare the byte a bit faster.

I tried to keep the API similar to your library however I have not implemented all functions fully yet.
Finally I added a few new functions, e.g. clearEOL() and some more.

The link is: https://github.com/RobTillaart/I2C_LCD and should be available through the library manager.

If there are questions, please let me know.

Regards,
Rob

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

No branches or pull requests

1 participant