An open API service indexing awesome lists of open source software.

https://github.com/fdelporte/javamagazinejavafxonraspberrypi

Sample project to demonstrate the use of JavaFX on the Raspberry Pi
https://github.com/fdelporte/javamagazinejavafxonraspberrypi

Last synced: 3 months ago
JSON representation

Sample project to demonstrate the use of JavaFX on the Raspberry Pi

Awesome Lists containing this project

README

        

# Getting started with JavaFX on Raspberry Pi

Example application to demonstrate the use of JavaFX on a Raspberry Pi in combination with Pi4J and some basic (and cheap) hardware components.

![Screenshot](screenshot.png)

## Build the application

This application is a Maven project. You can run it on PC, but will not do a lot as it needs Pi4J...

To build for the Raspberry Pi:

```
mvn clean package
```

## Run on a Raspberry Pi

### Install Pi4J

```
$ curl -sSL https://pi4j.com/install | sudo bash
```

### Connect the components

![Wiring](scheme/wiring.png)

### Run the application

Copy the generated file "javamagazine-javafx-example-0.0.1-jar-with-dependencies.jar" to your Pi and start it with

```
$ java -jar javamagazine-javafx-example-0.0.1-jar-with-dependencies.jar
```