Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Robo4J-rpi-lcd-example

Robo4J RasbpberryPi LCD Demo example

Example using Robo4J to send messages between the buttons and LCD in an Adafruit 2x16 LCD shield.

The LCD can also be controlled using REST.

The internal sever is accessible on port 8025 and supports POST requests (no authentication required).

Example: <ROBO4J_IP>:8025

POST request: { "commands" : [ {"name" : "up", "target" : "lcd" } ] }

Building from Source

The Robo4j framework uses Gradle to build. The easiest way is to simply build a fat jar.

./gradlew :fatJar

Running

The built fat jar can simply be run with java -jar. Just make sure you have all the required libraries on the path. The example can be run on all platforms where Swing is available by setting the system property com.robo4j.hw.rpi.i2c.adafruitlcd.mock to true.

For example:

java -Dcom.robo4j.hw.rpi.i2c.adafruitlcd.mock=true -jar build/libs/robo4j-rpi-lcd-example-0.5-SNAPSHOT.jar

Or, on a Raspberry Pi with the necessary hardware connected:

java -cp $ROBO4J_PATH:build/libs/robo4j-rpi-lcd-example-0.5-SNAPSHOT.jar com.robo4j.rpi.lcd.example.LcdExampleMain

The easiest way to run the example is to create the fatJar and run it.

Requirements

Staying in Touch

The official twitter account:

Author's twitter accounts:

The official blog:

Author's blogs:

License

The Robo4j.io Framework is released under version 3.0 of the General Public License.

About

A Robo4J demo application to run a set of demos on an Adafruit LCD. The demos include, for example, a scroller and color changes.

Resources

License

Packages

No packages published

Languages