]> hydra-www.ietfng.org Git - acmetensortoys-esp-lua_lamp/commit
ws2812 vs gpio: down the AND gate "later"
authorNathaniel Wesley Filardo <nwfilardo@gmail.com>
Sun, 31 May 2020 23:18:47 +0000 (00:18 +0100)
committerNathaniel Wesley Filardo <nwfilardo@gmail.com>
Sun, 31 May 2020 23:18:47 +0000 (00:18 +0100)
commitb3c545be719311cf8a1d5ce035efa8c13cf3c4b5
tree5d17e736aba158d58b57bba7d50bed19574c4ff1
parent71feb49b9129ae91fc277f3dd35b1b84f6c794ee
ws2812 vs gpio: down the AND gate "later"

Right now, the ws2812 driver doesn't wait for the bit stream to return
control to Lua, so rather than immediately kick the AND gate off, set up
a timer to do it "soon".  This is not really the right fix, since it
leaves the AND gate high for a long while, but it works well enough I
suppose.
init2.lua