Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Java FX 8 Essentials
  • Table Of Contents Toc
  • Feedback & Rating feedback
Java FX 8 Essentials

Java FX 8 Essentials

By : Mohamed Taman
3.7 (7)
close
close
Java FX 8 Essentials

Java FX 8 Essentials

3.7 (7)
By: Mohamed Taman

Overview of this book

If you are a Java developer, an experienced Java Swing, Flash/Flex, SWT, or web developer looking to take your client-side applications to the next level, this book is for you.
Table of Contents (11 chapters)
close
close
7
7. Monitoring and Controlling Arduino with JavaFX
10
Index

The switch application


The switch application is very simple in its nature, but the idea is mainly divided into two main points: how to run JavaFX 8 applications on Raspberry Pi and how to control the outside world from the Raspberry Pi General-purpose input/output (GPIO). We will use a project called Pi4j for such purpose.

The idea is simple; we are going to create a JavaFX application that will act as a switch controller to control a LED associated to an electrical circuit connected to your Raspberry Pi.

The following screenshots show the application in the ON and OFF states:

Switch Application ON state

.

Switch Application OFF state

What is the Pi4J library?

The Pi4j library (http://pi4j.com) is a project intended to provide a bridge between the native libraries and Java for full access to the Raspberry Pi features and controls, so you can easily access the GPIO pins for your Java project.

Visit http://pi4j.com/pins/model-2b-rev1.html for Raspberry Pi 2 model B (J8 header) for GPIO pin numbering...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Java FX 8 Essentials
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon