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ª ººº«ªª ªªªªªªªª ªªªªªªªªª ªªªºªª ªªªªªªªª ªªªªªªª ª©©©©ºº ºº ©º         ªª©º        ªª ©ª ªª ª      ©ªºªª ª     º  ©ªª ªª        ªºªª ºººº©ªª ªª        ªºªª ºººº©º         ªª©º        ªª  ªª ªª          ©ºªª ªª           ©º ªª ªª ª        ©ºªª ªª ª         ©º   ªª ªª        ©ººªª ªº   ªª ªª        ©ººªª ªºªª      ©ªª º©º     º ª  ªº©º          ©º          ©º          ©º          ©º© º© º   ©            ©º   º  ©« ª ©     ©º           º ªª©ª          © ªª ªº ªª ªª  ©        ©º º© º© ºŸà" "03030D3D3DCä"""33D3D4NDà™™™™™™™™ÄDD@LD™™™™™™™™™D4BD#@ä”™™™™™™™™ÄDD@LD™™™™™™™™™D4BD#" "03030D3Ä3ÄCä""33D3L4NL" "03033D3ÄCÄCä""33D3L4NL" 3333DCÄCÄCä""3DLNL" "03030D3Ä3Ä@ä""33D3L4NL@ä”™™™™™™™™ÄDD@LD™™™©™©™©™D4BD#@ä”™™™™™™™™ÄDD@LD™™™©™©™©™D4BD#@ä”™™™™™™™™ÄDD@LD™™™©™©™©™D4BD#ä™™™™™™™™ÄDD@LD™™™©™©™©™D4BD#!ˆ‰Š‹Q•–—˜™š›œž˜™š›¡¢£¤¥¦§¨©ª®˜™š›±²³´µ¶·¸¹º¾À¡¢£¤ÅÆÇÈÉÊÉÊ£¤¡¢ƒ„б²³´ÕÖרÙÚÙÚ³´±²“”àáâãäåæçèéêëìíîðñòóôõö÷øùúûüýþEF UVGHWX;<MNIJKL]^YZ[\ >Ì;©º©º©ªªº©ªªªº©ªªªº©º©º     ªªªª  ªªªª  ªªªª          ªª   º  º              º  º              º  º     ªªªª   ©º    º  º ªªªª  ªªªª  ªªªª   º  ºªªªª ªªªª  ªªªª  ªªªª  ªªªª        ªª  ªªªº ªªªº                                                          ©º©º©º©º©º©º©º©º©º©º©ªªº©º©º©º©º©ºº©ºº©ªªº©º©ºªª      ªªªª           ©   ©  ªªªª     ªª      ªª           º  º ªª     ªª          º        ©   ©         ©º         ª         º  º        ©º ªªªª   ©º   ªº        ©   ©   ©º   ªªªª ©º ªªªª  ªªªª   ©        ªª ªª ªªªª  ªªªª ©º ªªªª  ªªªª   º       ªª ªª ªªªª  ªªªª ©º     ªª   ©«       ©   ©  ªª               ª       º  º                  ©       ©   ©                      º©   º  º        ©º             ªªªª   ©   ©         ©º©º©º©º©º©º©º©ªªº©ºº©ºº©º©º©º©º "" ""0330333DD33ÄL4CÄNCäL@ä”™™™™™™™©™™™©™™™©™ÄDDD4B@LDD#@LD4#""""@LD4#"" "" ""@LDD# 3"033033@LDD#333033033@LDD#3DD0DD30DD3@LDD#CÄL3ÄL43ÄL4@LDD#CÄN3ÄN3ÄN@LDD#CäL@äLCäL@LDD#@ää@ä@LDD#”™™”™@LDD#™™™™™™™™™™™™@LDD#™™©™™™©™™™©™@LDD#™™©™™™©™™™©™@LDD#™™©™™™©™™™©™ÄDDD4BÄDDD4BÄDDD4BÄDDD4B@LDD#ÄDDD4BÄDDD4BÄDDD4BÄDDD4B@LDD#@LDD#@LDD#@LDD#@LDD#@LDD#@LDD#@LDD#@LDD#@LDD#@LDD#@LDD#@LDD#@LDD#@LDD#@LDD#@LDD#@2DDÄ@LDD#@LDD#@LDD#@LDD#@LDD#@LDD#@LDD#@LDD#@2DDÄ@LDD#@LDD#@LDD#@LDD#@LDD#@LDD#@LDD#@LDD#@2DDÄ@LDD#@LDD#@LDD#@LDD#@LDD#@LDD#@LDD#@LDD#@2DDÄ@LDDC@LDDC@LDDC@LDDC@LDDC@LDDC@LDDC@LDDC@4DDÄ@DDDD@DDDD@DDDD@DDDD@DDDC@DDDD@DDDD@DDDD@DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD@ÄDDDDÌÌDÄDDDDÌÌDÄDDDDÌÌDÄDDDDÌÌDDCDDDÌÌDÄDDDDÌÌDÄDDDDÌÌDÄDDDDÌÌÌÌDDDDL@DÌDDÌDDDDÌDDÌDDDDÌDDÌDDDDÌDDÌDDDD4DDÄDDDDÌDDÌDDDDÌDDÌDDDDÌDDÌDDDDÌDDÌD@DDÌÌDDDDDDÌÌDDDDDDÌÌDDDDDDÌÌDDDDDDCDLDDDDDÌÌDDDDDDÌÌDDDDDDÌÌDDDDDDÌÌDD@DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD4ÄDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD@DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDCDLDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD@DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD4DDÄDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD@D3333333333333333333333333333333DCDD4D4333333333333333333333333333333D@$"""""""""""""""""""""""""""""""2DDDDC$""""""""""""""""""""""""""""""BDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD4DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDÄLDD3BÄLDD3BÄLDD3BÄLDD3BÄLDD3BÄLDD3BÄLDD3BÄLDD3BÄLDD3BÄLDD3BÄLDD3BÄLDD3BÄLDD3BÄLDD3BîàîààîààÄLDD3BàîàààîîîîîîàîÄLDD3BàààààîàîÄLDD3BàààîàÄLDD3BîàîààîîîîîÄLDD3BàÄLDD3BîîààîàîÄLDD3BàîàààîîàîàîàîîàààÄLDD3BààààààÄLDD3BàààîàîàîÄLDD3Bîàààîàîààîàîà,CDDDÌLDDD4Bà,CDDDDDDDD4Bîààààà,CDDDDÌÌÌDDDDD4Bààîààîîààî,CDDDDDDDDDDDD4Bàààî,CDDDDDÄÌÌÌLDDDDDD4Bàààîàî,CDDDDDDDDDDDDDDDD4Bîààààààî,CDDDDDDÄÌÌÌÌÌLDDDDDDD4Bà,CDDDDDDDDDDDDDDDDDDDD4B«-- title: Virtual Menorah -- author: Dov Ezra -- desc: A virtual Menorah for the TIC80 -- license: MIT License (change this to your license of choice) -- version: 0.1 -- script: lua --86400 seconds to a day. t= time() testStart = 1734996600 testEnd = 1734997200 firstStart =1735163160 --25Dec2024,4:46pmEST firstEnd=1735177560 --25Dec2024,8:46pmEST secondStart=1735249620 --26Dec2024,4:37pmEST secondEnd=1735264020 --26Dec2024,8:47pmEST thirdStart=1735335000 --27Dec2024,4:30pmEST SHABBAT thirdEnd=1735349400 --27Dec2024,8:30pmEST fourthStart=1735425420 --28Dec,2024,5:37pmEST END SHABBAT fourthEnd=1735439820 --28Dec,2024,9:30pmEST fifthStart=1735508940 fifthEnd=1735523340 sixthStart=1735595400 sixthEnd=1735609800 seventhStart=1735681860 seventhEnd=1735696260 eigthStart=1735768320 eigthEnd=1735782720 shamashLit=false first=false second=false third=false fourth=false fifth=false sixth=false seventh=false eigth=false order = 0 function TIC() cls() map() nights() shamash() candles() light_order() extinguish() t=t+1 print("[Z] to light Shamash",0,110,14,false,1,true) print("[S] to light each candle",0,116,14,false,1,true) print("[X] to extinguish",0,122,14,false,1,true) end function shamash() if btnp(4) then if not shamashLit then shamashLit = true elseif shamashLit then shamashLit = false end end end function candles() if shamashLit then spr(277+t%80//20*2,13*8,5*8,00,1,0,0,2,3) end if first then spr(277+t%60//15*2,21*8,7*8,00,1,0,0,2,3) end if second then spr(277+t%40//10*2,19*8,7*8,00,1,0,0,2,3) end if third then spr(277+t%120//30*2,17*8,7*8,00,1,0,0,2,3) end if fourth then spr(277+t%100//25*2,15*8,7*8,00,1,0,0,2,3) end if fifth then spr(277+t%80//20*2,11*8,7*8,00,1,0,0,2,3) end if sixth then spr(277+t%72//18*2,9*8,7*8,00,1,0,0,2,3) end if seventh then spr(277+t%80//20*2,7*8,7*8,00,1,0,0,2,3) end if eigth then spr(277+t%40//10*2,5*8,7*8,00,1,0,0,2,3) end end function light_order() if btnp(7) then if shamashLit then order = order + 1 end end if order >= 1 then first = true end if order >= 2 then second = true end if order >= 3 then third = true end if order >= 4 then fourth = true end if order >= 5 then fifth = true end if order >= 6 then sixth = true end if order >= 7 then seventh = true end if order >= 8 then eigth = true end end function extinguish() if btnp(5) then order = 0 first,second,third,fourth = false fifth,sixth,seventh,eigth = false shamashLit = false end end function nights() --fist night if tstamp() > firstStart then if tstamp() < firstEnd then shamashLit=true first=true end end --second night if tstamp() > secondStart then if tstamp() < secondEnd then shamashLit=true first,second=true end end --third night if tstamp() > thirdStart then if tstamp() < thirdEnd then shamashLit=true first,second,third=true end end --fourth night if tstamp() > fourthStart then if tstamp() < fourthEnd then shamashLit=true first,second,third,fourth=true end end --fifth night if tstamp() > fifthStart then if tstamp() < fifthEnd then shamashLit=true first,second,third,fourth=true fifth=true end end --sixth night if tstamp() > sixthStart then if tstamp() < sixthEnd then shamashLit=true first,second,third,fourth=true fifth,sixth=true end end --seventh night if tstamp() > seventhStart then if tstamp() < seventhEnd then shamashLit=true first,second,third,fourth=true fifth,sixth,seventh=true end end --final night if tstamp() > eigthStart then if tstamp() < eigthEnd then shamashLit=true first,second,third,fourth=true fifth,sixth,seventh,eigth=true end end end