4 ms·
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: ht
by garaetjjte 4y ago
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/760a683f3480a4ff95c9377c1e9ef96b/raw/d83158e45eceda098961801552b5e352f52c32d4/chasing.lua https://gist.githubusercontent.com/Milek7/760a683f3480a4ff95...), though they were driven directly from Linux SBC. https://milek7.pl/.stuff/26gru.webm https://milek7.pl/.stuff/26gru.webm
- misterdata 4y agoFloating 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).