From 8b89f4ea78e492652ae572d6fd3bee7e32ebbea9 Mon Sep 17 00:00:00 2001 From: Rachael Date: Sat, 15 Oct 2016 19:09:45 -0700 Subject: [PATCH] making the new designs have their own files --- draw-kiss.lua | 20 ++++++++++++++++++++ draw-oo.lua | 9 +++++++++ draw-shifty-v2.lua | 22 ++++++++++++++++++++++ draw-shifty.lua | 19 +++++++++++++++++++ 4 files changed, 70 insertions(+) create mode 100644 draw-kiss.lua create mode 100644 draw-oo.lua create mode 100644 draw-shifty-v2.lua create mode 100644 draw-shifty.lua diff --git a/draw-kiss.lua b/draw-kiss.lua new file mode 100644 index 0000000..381b52a --- /dev/null +++ b/draw-kiss.lua @@ -0,0 +1,20 @@ +return function(t,fb,g,r,b) + t:unregister() + fb:fill(0,0,0) + local ix = 0 + local c = string.char(g,r,b) + fb:set( 2,c) fb:set( 9,c) fb:set(10,c) + fb:set(11,c) fb:set(14,c) fb:set(18,c) fb:set(20,c) + fb:set(21,c) fb:set(30,c) + t:register(500,tmr.ALARM_AUTO,function() + if ix == 1 + then fb:set( 1,c) fb:set( 2,0,0,0) fb:set( 3,c) + fb:set( 9,0,0,0) fb:set(11,0,0,0) fb:set(17,c) fb:set(18,0,0,0) + fb:set(19,c) + else fb:set( 1,0,0,0) fb:set( 2,c) fb:set( 3,0,0,0) fb:set( 9,c) + fb:set(11,c) fb:set(17,0,0,0) fb:set(18,c) fb:set(19,0,0,0) + end + ix = 1 - ix + dodraw() + end) +end \ No newline at end of file diff --git a/draw-oo.lua b/draw-oo.lua new file mode 100644 index 0000000..c7f2a36 --- /dev/null +++ b/draw-oo.lua @@ -0,0 +1,9 @@ + return function(t,fb,g,r,b) + t:unregister() + fb:fill(0,0,0) + local c = string.char(g,r,b) + fb:set( 2,c) fb:set( 3,c) fb:set( 6,c) fb:set( 7,c) + fb:set( 9,c) fb:set(12,c) fb:set(13,c) fb:set(16,c) + fb:set(17,c) fb:set(20,c) fb:set(21,c) fb:set(24,c) + fb:set(26,c) fb:set(27,c) fb:set(30,c) fb:set(31,c) + end \ No newline at end of file diff --git a/draw-shifty-v2.lua b/draw-shifty-v2.lua new file mode 100644 index 0000000..ccbde9e --- /dev/null +++ b/draw-shifty-v2.lua @@ -0,0 +1,22 @@ +return function(t,fb,g,r,b) + t:unregister() + fb:fill(0,0,0) + local ix = 0 + local c = string.char(g,r,b) + local x = string.char(0,0,0) + fb:set( 3,c) fb:set( 8,c) fb:set(10,c) fb:set(15,c) + fb:set(17,c) fb:set(18,c) fb:set(22,c) fb:set(23,c) + fb:set(27,c) fb:set(28,c) fb:set(29,c) fb:set(32,c) + t:register(1000,tmr.ALARM_AUTO, function() + if ix == 1 + then fb:set( 1,c) fb:set( 3,x) fb:set( 6,c) fb:set( 8,x) + fb:set(17,x) fb:set(19,c) fb:set(22,x) fb:set(24,c) + fb:set(25,c) fb:set(27,x) fb:set(30,c) fb:set(32,x) + else fb:set( 1,x) fb:set( 3,c) fb:set( 6,x) fb:set( 8,c) + fb:set(17,c) fb:set(19,x) fb:set(22,c) fb:set(24,x) + fb:set(25,x) fb:set(27,c) fb:set(30,x) fb:set(32,c) + end + ix = 1 - ix + dodraw() + end) + end \ No newline at end of file diff --git a/draw-shifty.lua b/draw-shifty.lua new file mode 100644 index 0000000..6de016a --- /dev/null +++ b/draw-shifty.lua @@ -0,0 +1,19 @@ +return function(t,fb,g,r,b) + t:unregister() + fb:fill(0,0,0) + local ix = 0 + local c = string.char(g,r,b) + fb:set( 2,c) fb:set( 3,c) fb:set( 6,c) fb:set( 7,c) + fb:set( 9,c) fb:set(12,c) fb:set(13,c) fb:set(16,c) + fb:set(17,c) fb:set(19,c) fb:set(20,c) fb:set(21,c) + fb:set(23,c) fb:set(24,c) fb:set(26,c) fb:set(27,c) + fb:set(30,c) fb:set(31,c) + t:register(1000,tmr.ALARM_AUTO, function() + if ix == 1 + then fb:set(18,0,0,0) fb:set(19,c) fb:set(22,0,0,0) fb:set(23,c) + else fb:set(18,c) fb:set(19,0,0,0) fb:set(22,c) fb:set(23,0,0,0) + end + ix = 1 - ix + dodraw() + end) +end \ No newline at end of file -- 2.50.1