MartinLT98
Posts: 1
Joined: Sat Aug 30, 2014 9:56 pm

Pi4J - LcdExample problem

Sat Aug 30, 2014 10:10 pm

Hello!
I have a problem when I trying to run Pi4J's LcdExample on the Raspberry Pi.

I've downloaded the libraries and done all the stuff that it tells me to do here: http://pi4j.com/install.html
Although when I try to run the program using

Code: Select all

sudo java -classpath .:classes:/opt/pi4j/lib/'*' LcdExample
the program runs but it just types out
<--Pi4J--> GPIO 4 bit LCD example program
as it made to do but nothing more.
(Note that the program never ends, it just continues to run!)

If you look in the code
it is told to do several other things to, for example write som text to the LCD.
I have a Adafruit 16x2 LCD Plate which I know there's nothing wrong with (as I can run python scripts with it), therefore I suspect some kind of Pi4J code / library error.

Grateful for answers!
/Martin

leogazio
Posts: 1
Joined: Sat Sep 13, 2014 5:44 am

Re: Pi4J - LcdExample problem

Sat Sep 13, 2014 5:49 am

Dude, that example dos not use Adafruit, uses a generic HITACHI HD44780. Guess that's why your example is not working.

User avatar
DougieLawson
Posts: 39303
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Pi4J - LcdExample problem

Sat Sep 13, 2014 9:59 am

leogazio wrote:Dude, that example dos not use Adafruit, uses a generic HITACHI HD44780. Guess that's why your example is not working.
Most of the Adafruit LCDs are based on a HD44780 chipset.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Java”