Pi4J LED Playground
Examples, resources and projects for LEDs on the Raspberry Pi with Pi4J
Lightsaber
A mini Star Wars-inspired lightsaber built with a Raspberry Pi, a single LED and a drinking straw, controlled with Pi4J.
Traffic Light
Build a working traffic light with three LEDs (red, yellow, green) driven by a Raspberry Pi and Pi4J.
Ambulance Lights
Recreate the alternating red and blue flashes of an ambulance light bar with two LEDs, a Raspberry Pi and Pi4J.
Candle
Simulate the warm, flickering glow of a candle using a single LED, PWM and a bit of randomness with Pi4J.
Fire
Simulate a small fire with multiple LEDs flickering independently, driven by a Raspberry Pi and Pi4J.
Police Lights
Simulate the fast double-flash red and blue strobe of a police car using two LEDs, a Raspberry Pi and Pi4J.
Blink LED
The classic "Hello World" of hardware — blink a single LED on a Raspberry Pi using Java and Pi4J.