r/FastLED • u/Any_Win4384 • May 16 '26
Share_something Mapping a hex shape with irregular grid
Enable HLS to view with audio, or disable this notification
I just recorded the process of mapping LEDs on a photo, in order to explain the use of FreeLED tools to a user named ButerBrott. And here's what i did:
- Upload the photo as background, dimm it for comfortable view of dots
- Use Link (L) tool and Ctrl + Mouse wheels to draw the lower half of the hex
- Then use Copy (Ctrl+C) and Paste (Ctrl+V) to create the upper half as a copy of the lower half
- Then use Flip (FX/FY) to correct the path
- Then use Invert (I) to correct the direction
- Then use Link (L) to connect the 2 halves
Use the tool freely at freeled.org
View all comments
Show parent comment
2
u/Any_Win4384 May 20 '26
You’ve actually got the core concept right, but there’s a crucial distinction in how it maps to reality. The main point is that we use FreeLED to recreate the exact physical shape and, more importantly, with the precise wiring order from LED to LED.
The map then can be exported to files via export function. The option for fastLED can be of following:
Option 6: a .json file of precise float coordinates (x and y arrays)
Option 7: a .c file of integer coordinate arrays for x and y
Option 8: a .c file of 1D array of LED indices in 2D grid
And about automated camera mapping — It's your very sharp catch!
I’m actually working on that right now, currently fine-tuning the thresholds to get clean, automatic layouts. You can see the Icon "Auto-Trace" that hints this function.
Thanks for the great feedback, really appreciate it!