LiquidCrystal_I2C icon indicating copy to clipboard operation
LiquidCrystal_I2C copied to clipboard

Add support for RPI

Open slogan621 opened this issue 4 years ago • 6 comments

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 avatar Jul 04 '20 21:07 slogan621

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

slogan621 avatar Jul 04 '20 23:07 slogan621

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

johnrickman avatar Jul 07 '20 14:07 johnrickman

I can’t find this on gitlab - returns a 404.

On Tue, Jul 7, 2020 at 7:53 AM John Rickman [email protected] wrote:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/johnrickman/LiquidCrystal_I2C/pull/43#issuecomment-654919993, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABU7SOV3CAZBCBDSRBYT53R2MZH5ANCNFSM4OQSAP3A .

-- Syd Logan

slogan621 avatar Jul 07 '20 16:07 slogan621

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

johnrickman avatar Jul 07 '20 16:07 johnrickman

Okay, thanks.

On Tue, Jul 7, 2020 at 9:08 AM John Rickman [email protected] wrote:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/johnrickman/LiquidCrystal_I2C/pull/43#issuecomment-654966940, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABU7SJWK5OBTG53TT3JKQTR2NB75ANCNFSM4OQSAP3A .

-- Syd Logan

slogan621 avatar Jul 07 '20 16:07 slogan621

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

johnjces avatar May 02 '22 17:05 johnjces