Re:Over-engineering an RGB LED strip: let’s make a custom pr...
by garaetjjte on Sunday July 17, 2022 @05:23PM
(#32131450)
I'm surprised you didn't use floating point math, it seems cumbersome to make animations that way. My attempt at programmable LED strips used Lua (like that: https://gist.githubusercontent.com/Milek7/760a683f3480a4ff95...), though they were driven directly from Linux SBC. https://milek7.pl/.stuff/26gru.webm
[ Parent
| on HN ]
Re:Over-engineering an RGB LED strip: let’s make a custom pr...
by misterdata on Sunday July 17, 2022 @05:29PM
(#32131514)
Floating point is just not very fast on ESP8266 (I believe it could even be softfloat, so emulated in software?).
Nevertheless it shouldn't be that difficult to change the interpreter to use floats instead of ints as base type (mixing the two would be more involved I think).