Skip to content

Add support for RPI#43

Open
slogan621 wants to merge 23 commits into
johnrickman:masterfrom
slogan621:rpi
Open

Add support for RPI#43
slogan621 wants to merge 23 commits into
johnrickman:masterfrom
slogan621:rpi

Conversation

@slogan621
Copy link
Copy Markdown

@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
Copy Markdown
Author

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

@johnrickman
Copy link
Copy Markdown
Owner

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

@slogan621
Copy link
Copy Markdown
Author

slogan621 commented Jul 7, 2020 via email

@johnrickman
Copy link
Copy Markdown
Owner

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

@slogan621
Copy link
Copy Markdown
Author

slogan621 commented Jul 7, 2020 via email

@johnjces
Copy link
Copy Markdown

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