Post on 20-May-2020
1
Raspberry Pi NightHacking
Stephen Chin (@steveonjava)
Angela Caicedo (@acaicedo)
2
What Runs Java?Example of devices powered by Java
SMALL
RFID Readers
Parking Meters
Intelligent Power
Module
Smart Meters
LARGE
Multi Function Printers
ATMs
POS Systems
In-Flight Entertainment Systems
Electronic Voting Systems
Medical Imaging Systems
MEDIUM
Routers & Switches
Storage Appliances
Network Management Systems
Factory Automation Systems
Security Systems
3
Java and 3G in a Tiny Package
Cinterion EHS5
4
Really Tiny…
27.6mm
18
.8m
m
5http://upload.wikimedia.org/wikipedia/commons/3/3d/Cloud_forest_Ecuador.jpg
6
=
Have Java With Your DessertRaspberry Pi
7 http://elinux.org/File:Raspi-Model-AB-Mono-2-699x1024.png
8
And what are these for?
http://i.imgur.com/k0Puu.jpg
9
How to Setup Your Pi
Step 1: Install Linux
http://steveonjava.com/
10
How to Setup Your Pi
Step 2: Download/Copy Java 8 for ARM EA
http://steveonjava.com/
11
How to Setup Your Pi
Step 3: Deploy and Run JavaFX Apps
http://steveonjava.com/
12
How to Get JavaFX
Step 1: Download Java 7
13
How to Develop JavaFXUse Your Favorite IDE
14
Build Applications VisuallyJavaFX Scene Builder
15
The Parallax Principle
Scrolling technique in
computer graphics, wherein
background images move by
the camera slower than
foreground images, creating
an illusion of depth in a 2D
video game and adding to the
immersion.
We see it everyday!
direction to
distant mountain
direction to
distant mountain
what you see what you see
16
The more layers… the better!Thanks Photoshop
17
I2C Hardware via Pi4J
3.3V/GND
MPU-9150
18
Demo Setup
LCD
Screen
ADXL345
MPU-9150
Breakout
The
Raspberry Pi
Touch Screen
sensor
Light sensor
19
Chalkboard Electronics Touchscreen
10" or 7" Form Factor
Connects via HDMI/USB
Tested with JavaFX 8
10% Exclusive Discount:
G1F0U796Z083
20
Conclusion
JavaFX enables graphically rich, fast performing apps
Visually create applications using Scene Builder
You can integrate hardware using GPIO and I2C
Run on Raspberry Pi today!
21
Stephen Chintweet: @steveonjava
blog: http://steveonjava.com
nighthacking.com
Real GeeksLive Hacking
NightHacking Tour
Angela Caicedotweet: @acaicedo
blog: http://acaicedo.com
22
The preceding is intended to outline our general product direction. It is intended
for information purposes only, and may not be incorporated into any contract.
It is not a commitment to deliver any material, code, or functionality, and should
not be relied upon in making purchasing decisions. The development, release,
and timing of any features or functionality described for Oracle’s products
remains at the sole discretion of Oracle.