Skip to content

Instantly share code, notes, and snippets.

@theosnel
theosnel / wled tree mapper.py
Created December 11, 2023 19:19
wled christmas tree map generator
import json
from collections import defaultdict
matrix = defaultdict(list)
width = 30
# each row in the tree, from top to bottom.
# [first led, middle led, last led], counting from 0
input = [