I bought this LCD: https://www.sunfounder.com/i2clcd.html

And I want to use it under Java program, for example with pi4j framework. Being I2C restricts a lot the examples I found and in that world, people usually speak about I2C with module MCP23017, MCP23008... or similar.

Isn't it possible to use my module in Java? Any easy example? Many thanks in advance.

  • Have you tried looking/asking at pi4j.com – joan Jun 21 '16 at 6:50

Have a look through this raspberrypi.org post which seems to offer a working solution or at least a start point.

If you can program there are many Python examples which should be easily portable to Java, e.g. my http://abyz.me.uk/rpi/pigpio/examples.html#Python_i2c_lcd_py

| improve this answer | |
  • I'm trying to make it work with diozero labrary but still not – carduque Jun 23 '16 at 9:22
  • Which backend are you using? I thought it worked if the pigpio backend was used (disclaimer, I wrote pigpio but have nothing to do with Java or the diozero backend). – joan Jun 23 '16 at 9:29
  • Do you mean provider? I was using Pi4J. – carduque Jun 23 '16 at 9:57
  • @carduque Possibly, it sounds like what I would call a backend. – joan Jun 23 '16 at 9:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.