JavaFX Based StarWars Clock on SPI Display.
To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
Based on Rapbian Wheezy without any DesktopManager, uninstalled LightDM, Java8FX Engine writes JavaFX direct to Framebuffer.
Good instructions, but many tricky http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/RaspberryPiFX/raspberryfx.html
EDIT /boot/config.txt like:
# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=2
hdmi_mode=87
hdmi_cvt=320 240 60 1 0 0 0
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4
# uncomment for composite PAL
#sdtv_mode=2
# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=on
Install fbcp to copy Main Framebuffer to LCD-Framebuffer.
sudo apt-get install cmake git
git clone https://www.github.com/tasanakorn/rpi-fbcp
cd rpi-fbcp/
mkdir build
cd build
cmake ..
make
install fbcp /usr/local/bin/fbcp
Create start.sh as Code example.
#!/bin/sh
#On Staging kernel not needed
#sudo modprobe fbtft dma
#Example for hy28B
sudo modprobe fbtft_device name=hy28b fbtft_device.speed=3000000 rotate=90 fbtft_device.fps=20
sleep 10
fbcp&
JAVAFX_DEBUG=1 java -Dcom.sun.javafx.experimental.embedded.3d=true -Dprism.glDepthSize=16 -jar /home/pi/StarWars.jar
Create an account to leave a comment. Already have an account? Log In.
Become a member to follow this project and never miss any updates