]> hydra-www.ietfng.org Git - acmetensortoys-esp-lua_lamp/commitdiff
lamp: draw-happy
authorNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Mon, 21 Nov 2016 21:47:49 +0000 (16:47 -0500)
committerNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Mon, 21 Nov 2016 21:47:49 +0000 (16:47 -0500)
draw-happy.lua [new file with mode: 0644]

diff --git a/draw-happy.lua b/draw-happy.lua
new file mode 100644 (file)
index 0000000..bbadcce
--- /dev/null
@@ -0,0 +1,12 @@
+--
+--    1 2 3 4 5 6 7 8
+-- 00 o x o o o o x o
+-- 08 x o x o o x o x
+-- 16 o o o o o o o o
+-- 24 o o o x x o o o
+--
+return function(t,fb,g,r,b)
+  local c = string.char(g,r,b)
+  local i,v
+  for i,v in ipairs({2,7,9,11,14,16,28,29}) do fb:set(v,c) end
+end