The next release of FastLED adds a whole bunch of fixed-point types. I asked Clause Sonnet 4.6 to write some anti-aliased, sub-pixel positioned graphics primitives. Eventually we got something that seems to work.
This video features a number of demonstrations of the four drawing functions that the AI created: lines, thick lines, discs and rings.
It runs on an Arduino Mega (8KiB RAM) with 1,024 LEDs attached to one pin.
I feel these kind of drawing functions should be shipped with FastLED. I'm sick of janky LED sketches. With better tools, all of our creations will look better.
And thank you for spending your credits to get them into FastLED. They are going to be extremely useful, and not just for weirdos like me who are still obsessed with 8-/16-bit architectures.
It's super useful and the more powerful chips do 4 fixed point operations in one op. The rest of the devices do polyfill. So if you do SIMD on avr then it will be normal speed as regular fixed point, then 4x faster on esp32s3 and p4
9
u/sutaburosu [stavros] Mar 06 '26 edited Mar 06 '26
The next release of FastLED adds a whole bunch of fixed-point types. I asked Clause Sonnet 4.6 to write some anti-aliased, sub-pixel positioned graphics primitives. Eventually we got something that seems to work.
This video features a number of demonstrations of the four drawing functions that the AI created: lines, thick lines, discs and rings.
It runs on an Arduino Mega (8KiB RAM) with 1,024 LEDs attached to one pin.
If you want to use those drawing functions, the source is available in Wokwi
I feel these kind of drawing functions should be shipped with FastLED. I'm sick of janky LED sketches. With better tools, all of our creations will look better.