2

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.

1
  • Have you tried looking/asking at pi4j.com
    – joan
    Commented Jun 21, 2016 at 6:50

1 Answer 1

1

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

4
  • I'm trying to make it work with diozero labrary but still not
    – carduque
    Commented Jun 23, 2016 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
    Commented Jun 23, 2016 at 9:29
  • Do you mean provider? I was using Pi4J.
    – carduque
    Commented Jun 23, 2016 at 9:57
  • @carduque Possibly, it sounds like what I would call a backend.
    – joan
    Commented Jun 23, 2016 at 9:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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