Skip to content

Instantly share code, notes, and snippets.

View rafaone's full-sized avatar
🏠
Working from home

rafaone rafaone

🏠
Working from home
View GitHub Profile
@Toqaro
Toqaro / AmbilightControl.java
Created January 7, 2016 21:57
Example of a JavaFX Application controlling a RGB LED Strip through communicating with an Arduino Uno to create a cheap DIY ambient backlight (single-color).
package de.molaynoxx.ambilightcontrol;
import gnu.io.CommPortIdentifier;
import gnu.io.SerialPort;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.collections.FXCollections;
import javafx.geometry.Insets;