Showing data on the HD44780-compatible display

Now that we have connected the LCD to the Raspberry Pi, it is time to actually start with the code and display some data. With the project loaded in NetBeans, open the Chapter2.java class, which lives in the, chapter2 package. Let's take a look at the main(String args[]) method.

We see all the methods are commented out. We will be uncommenting these methods throughout the book, so each step will get more obvious, and we will be able to follow and explain all the interactions between the components and the software.

Uncomment the runLcdExample(); method and press the Run (with the green arrow) button in the IDE. NetBeans will start to compile the application; upload it to the Raspberry Pi and ...

Get Raspberry Pi 3 Projects for Java Programmers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.