Skip to content

Instantly share code, notes, and snippets.

View cstenkamp's full-sized avatar

Chris Stenkamp cstenkamp

View GitHub Profile
@cstenkamp
cstenkamp / wled-ledmap-generator.py
Created September 16, 2025 12:13
This is some code to create a WLED LED-Map (the JSON that tells WLED the positions of the LEDs) with some features that I didn't find in any online editors: Dragging the mouse over the canvas fills all hovered cells, rescaling the map to a different size, inverting, and inserting LEDs in between existing ones.
import json
import sys
import math
import tkinter as tk
from tkinter import filedialog
from tkinter import font as tkfont
class MapperApp:
def __init__(self, width=30, height=20, cell=22, name="my_matrix"):
self.w, self.h, self.cell, self.name = width, height, max(1, cell), name
@cstenkamp
cstenkamp / README.md
Last active October 2, 2021 14:07
Change Of Basis With Coordinate Translation

Change Of Basis With Coordinate Translation

Binder