<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/jvm-advent-2020---light-up-your-christmas-lights-with-java-and-raspberry-pi-lsdgdglem" -->

---
title: JVM Advent 2020 - Light up your Christmas lights with...
description: A beginner-friendly tutorial on controlling LED Christmas lights using Java and a Raspberry Pi 4. Covers setting up the Raspberry Pi OS with OpenJDK 11,...
canonical: https://daily.dev/posts/jvm-advent-2020---light-up-your-christmas-lights-with-java-and-raspberry-pi-lsdgdglem
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: JVM Advent 2020 - Light up your Christmas lights with Java and Raspberry Pi | daily.dev
og:description: A beginner-friendly tutorial on controlling LED Christmas lights using Java and a Raspberry Pi 4. Covers setting up the Raspberry Pi OS with OpenJDK 11,...
og:url: https://daily.dev/posts/jvm-advent-2020---light-up-your-christmas-lights-with-java-and-raspberry-pi-lsdgdglem
og:image: https://api.daily.dev/og/posts/LsDGdgLEm.png
og:image:alt: JVM Advent 2020 - Light up your Christmas lights with Java and Raspberry Pi
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# JVM Advent 2020 - Light up your Christmas lights with Java and Raspberry Pi

**[WebTechie](https://daily.dev/sources/webtechie)** · 9 min read · 0 upvotes · 0 comments

## Summary

A beginner-friendly tutorial on controlling LED Christmas lights using Java and a Raspberry Pi 4. Covers setting up the Raspberry Pi OS with OpenJDK 11, installing Pi4J and WiringPi, wiring LEDs with resistors on a breadboard, and writing Java code to control GPIO pins with PWM for blinking and fading effects. Includes a complete Maven project on GitHub with commands to build and run directly on the Pi.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://webtechie.be/post/2020-12-21-java-almanac-christmas-tree/>

## Similar posts on daily.dev

- [First Test of Java on Banana Pi's \(ARM and RISC-V\), Plus a Blinking LED with Pi4J · webtechie.be](https://daily.dev/posts/first-test-of-java-on-banana-pi-s-arm-and-risc-v-plus-a-blinking-led-with-pi4j-webtechie-be-b70nwh3on) · WebTechie · 4 upvotes · 0 comments
- [Using the Raspberry Pi Sense HAT with Pi4J Drivers](https://daily.dev/posts/using-the-raspberry-pi-sense-hat-with-pi4j-drivers-pulqwpvsi) · Foojay.io · 0 upvotes · 0 comments
- [My Book 'Java Programming for Raspberry Pi' is Now Available as Softcover and Hardcover on Amazon · webtechie.be](https://daily.dev/posts/my-book-java-programming-for-raspberry-pi-is-now-available-as-softcover-and-hardcover-on-amazon--m9eudstvf) · WebTechie · 2 upvotes · 0 comments
- [foojay – a place for friends of OpenJDK](https://daily.dev/posts/foojay-a-place-for-friends-of-openjdk-8qn5dscvg) · Foojay.io · 2 upvotes · 0 comments
- [Open Source · webtechie.be](https://daily.dev/posts/open-source-webtechie-be-i61uzf2bv) · WebTechie · 2 upvotes · 0 comments

---

Tags: [#java](https://daily.dev/tags/java), [#raspberry-pi](https://daily.dev/tags/raspberry-pi)

[View this post on daily.dev](https://daily.dev/posts/jvm-advent-2020---light-up-your-christmas-lights-with-java-and-raspberry-pi-lsdgdglem)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"JVM Advent 2020 - Light up your Christmas lights with Java and Raspberry Pi","url":"https://daily.dev/posts/jvm-advent-2020---light-up-your-christmas-lights-with-java-and-raspberry-pi-lsdgdglem","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/jvm-advent-2020---light-up-your-christmas-lights-with-java-and-raspberry-pi-lsdgdglem"},"datePublished":"2026-03-31T12:41:20.883Z","dateModified":"2026-03-31T13:00:56.501Z","description":"A beginner-friendly tutorial on controlling LED Christmas lights using Java and a Raspberry Pi 4. Covers setting up the Raspberry Pi OS with OpenJDK 11,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4d7aa8098b4f07e2e430dfd85d3bda8e?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4d7aa8098b4f07e2e430dfd85d3bda8e?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"WebTechie","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"WebTechie","logo":"https://media.daily.dev/image/upload/s--Q98Q0_9X--/f_auto,q_auto/v1774960848/logos/webtechie?_a=BAMAMiWQ0","url":"https://daily.dev/sources/webtechie"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/jvm-advent-2020---light-up-your-christmas-lights-with-java-and-raspberry-pi-lsdgdglem","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"java,raspberry-pi","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"WebTechie","item":"https://daily.dev/sources/webtechie"},{"@type":"ListItem","position":3,"name":"JVM Advent 2020 - Light up your Christmas lights with Java and Raspberry Pi"}]}
```

