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

Add support for RPI #43

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

Add support for RPI #43

wants to merge 23 commits into from

Conversation

slogan621
Copy link

@slogan621 slogan621 commented Jul 4, 2020

Rewrote LiquidCrystal_I2C.git to factor out Arduino-based code into an implementation class that can be instantiated on Arduino platforms at compile time. Coded a similar class that uses Linux-based i2c APIs, and supports Raspberry PI.

Nice thing is this library can now be used for both platforms. For Arduino, copy to the library directory as before. For RPI, it Makefiles are provided so it can be cross compiled (or compiled directly on the RPI) as a library, and then examples (such as CustomChars) can be ported to use it.

No changes are needed to the existing examples, they will work as in. cpp versions of HelloWorld and CustomChars were added, but mostly to add a main() that allows for specification of the i2c bus and the ID of the device.

Accepting this pull should not break existing arduino use cases, and will double the impact of this code bringing Raspberry PI community on board.

@slogan621
Copy link
Author

@johnrickman please review, drop in replacement that now allows this code to support Raspberry PI.

@johnrickman
Copy link
Owner

Please note that I have move this repo to https://gitlab.com/tandembyte/liquidcrystal_i2c

@slogan621
Copy link
Author

slogan621 commented Jul 7, 2020 via email

@johnrickman
Copy link
Owner

Sorry, I put the wrong url. It is https://gitlab.com/tandembyte/LCD_I2C

@slogan621
Copy link
Author

slogan621 commented Jul 7, 2020 via email

@johnjces
Copy link

johnjces commented May 2, 2022

Where can this library be found that supports the rPi? The URl:
https://gitlab.com/tandembyte/LCD_I2C
Is not found.
Thanks!

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.

3 participants