Kristalyn LumyPeach Devils
Published

Energy Usage Conservation

We aim to improve efficiency and promotes sustainability. The goal is to enable smarter consumption for environment and economic benefit.

BeginnerWork in progress58
Energy Usage Conservation

Things used in this project

Hardware components

Light Unit with Photo-resistance
M5Stack Light Unit with Photo-resistance
×1
Time-of-Flight (ToF) VL53L0X Laser Ranging Unit (MCP4725/)
M5Stack Time-of-Flight (ToF) VL53L0X Laser Ranging Unit (MCP4725/)
×1
SG90 Micro-servo motor
SG90 Micro-servo motor
×2
PIR Motion Sensor (generic)
PIR Motion Sensor (generic)
×1
ENV II Unit
×1

Hand tools and fabrication machines

Scissor, Electrician
Scissor, Electrician
Tape, Foam
Tape, Foam

Story

Read more

Schematics

Main Flowchart

Secondary Flowchart

Block Diagram

Code

Main M5Stack Code

Python
{"components":[{"id":"____screen","createTime":1738812071279,"name":"screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#000000","backgroundImage":"","type":"screen"},{"id":"____buttonA","createTime":1738812071280,"name":"ButtonA","buttonIndex":0,"x":35,"y":216,"width":64,"height":24,"text":"ButtonA","visibility":false,"type":"button"},{"id":"____buttonB","createTime":1738812071280,"name":"ButtonB","buttonIndex":1,"x":125,"y":216,"width":64,"height":24,"text":"ButtonB","visibility":false,"type":"button"},{"id":"____buttonC","createTime":1738812071280,"name":"ButtonC","buttonIndex":2,"x":215,"y":216,"width":64,"height":24,"text":"ButtonC","visibility":false,"type":"button"},{"id":"AYYBK4z024ta#p=o","createTime":1738812435116,"isCoreTwo":false,"isPaper":false,"name":"label0","x":187,"y":36,"color":"#d71f41","text":"Temperature","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":6},{"id":"!eaM$JK+6o8T&84g","createTime":1738812515074,"isCoreTwo":false,"isPaper":false,"name":"label1","x":200,"y":84,"color":"#146be8","text":"Humidity","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":5},{"id":"e$ID!h*G4=BEF*Ey","createTime":1738814885404,"isCoreTwo":false,"isPaper":false,"name":"label4","x":12,"y":160,"color":"#f0ff00","text":"Motion","font":"lcd.FONT_DejaVu18","rotation":0,"type":"label","layer":12},{"id":"qR*PK+`F0tshg!at","createTime":1739418387814,"isCoreTwo":false,"isPaper":false,"name":"label3","x":12,"y":31,"color":"#FFFFFF","text":"Temperature: ","font":"lcd.FONT_DejaVu18","rotation":0,"type":"label","layer":8},{"id":"Gs96RHrjwQHAY@-o","createTime":1739418911970,"isCoreTwo":false,"isPaper":false,"name":"label5","x":12,"y":78,"color":"#FFFFFF","text":"Humidity: ","font":"lcd.FONT_DejaVu18","rotation":0,"type":"label","layer":9},{"id":"v^VqHzbDVck0t4N8","createTime":1739419142247,"isCoreTwo":false,"isPaper":false,"name":"humText","x":12,"y":196,"color":"#0046ff","text":"Humidity Warning!","font":"lcd.FONT_DejaVu18","rotation":0,"type":"label","layer":11},{"id":"LmHmFLNLxm=P2p*f","createTime":1739420402504,"isCoreInk":false,"isPaper":false,"name":"title0","x":0,"y":0,"width":320,"height":20,"color":"#FFFFFF","backgroundColor":"#0000FF","text":"Smart Factory UI Main","textOffset":3,"font":"lcd.FONT_Default","type":"title","layer":10,"radius":null}],"type":"core","versions":"Beta","units":[{"id":"oQhZ9K%17ouqUVao","createTime":1739420253522,"hidden":false,"type":"env2","name":"env2_0","port":"A","default":["A","E","PAHUB","Custom"],"pb_port":[0,1,2,3,4,5],"new_pb_port":"0","user_port":["21","22"],"icon":"env2.png"},{"id":"HpX^v!WN1Wj^KWIz","createTime":1739420253522,"type":"servo","name":"servo_0","port":"C","default":["A","B","C","E","Custom"],"user_port":["21","22"],"icon":"servo.png"},{"id":"OvRi-rnu6pi44e9D","createTime":1739420253522,"type":"pir","name":"pir_0","port":"B","default":["A","B","C","E","Custom"],"user_port":["21","22"],"icon":"pir.png"}],"hats":[],"blockly":"<block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"119\" y=\"119\"><next><block type=\"servo_unit_write_angle\" id=\"]tde10|8x#JC3-o$VMA/\"><field name=\"VARNAME\">servo_0</field><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"0J,RDUg6g2,$7wrQ{@b!\"><field name=\"NUM\">180</field></shadow></value><next><block type=\"basic_on_loop\" id=\"f?^l=.R:7%Ljo=^vc_63\"><statement name=\"LOOP\"><block type=\"label_set_text\" id=\"X}EBbA_8xH8I}:EV~NXB\"><field name=\"COMPONENT\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\"M5I9i^jQyj:P-ausH?6b\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"dht12_get_temperature\" id=\"!hie$Ad;p~IuUXo+D7[i\"><field name=\"VARNAME\">env2_0</field></block></value><next><block type=\"label_set_text\" id=\"-^_~sxiM{Hi]pR~Whyt_\"><field name=\"COMPONENT\">label1</field><value name=\"TEXT\"><shadow type=\"text\" id=\"+1/}6iM6^l`?1ho,d~=P\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"dht12_get_humidity\" id=\"@bz-`Pj6yh(]F7+N!1kE\"><field name=\"VARNAME\">env2_0</field></block></value><next><block type=\"controls_ifelse\" id=\"LkQ4AczS*8EXDkRd?2`B\"><value name=\"IF0\"><block type=\"logic_operation\" id=\"_)0lb6bF]wyIt91){{!*\"><field name=\"OP\">AND</field><value name=\"A\"><block type=\"logic_compare\" id=\"T2c/j%+i!Eb93Uamuk(6\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"dht12_get_temperature\" id=\":w7U8OrQHsiO?3chIwB~\"><field name=\"VARNAME\">env2_0</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"f146N2K`ac]{~KaTpeY`\"><field name=\"NUM\">28</field></block></value></block></value><value name=\"B\"><block type=\"logic_compare\" id=\"%H%U(TUduoIHgvQpXa2M\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"pir_read\" id=\"`O3z(Ac`]V}G0oRPf(zC\"><field name=\"VARNAME\">pir_0</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"LeAo1k6wE:.Y_l3||cZ,\"><field name=\"NUM\">0</field></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"timer_delay_ms\" id=\":p+H;E@#Zs*{-R$XE`qS\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"Tt3]b3#mlq*N0@~/71,@\"><field name=\"NUM\">40</field></shadow></value><next><block type=\"controls_repeat\" id=\"7w+{OwPg,0D-+NrNn_|-\"><field name=\"TIMES\">5</field><statement name=\"DO\"><block type=\"speaker_vol\" id=\"KMt%(-qjL-)GQ?9X?`w1\"><value name=\"VOLUME\"><shadow type=\"math_number\" id=\"p+:f+@u@s!BHa!?U_bs|\"><field name=\"NUM\">0.2</field></shadow></value><next><block type=\"speaker_tone\" id=\"[]Jmd7@3m@^3t:Xq9?.2\"><value name=\"FREQ\"><shadow type=\"math_number\" id=\"*T`yhI%kSC#Hint6b^|6\"><field name=\"NUM\">900</field></shadow></value><value name=\"TIMEOUT\"><shadow type=\"math_number\" id=\"ez+56;jlfMpJr!XPpD=4\"><field name=\"NUM\">300</field></shadow></value><next><block type=\"timer_delay_ms\" id=\"|;*w1XOjq0Jp=%GS?+w%\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"ISk21vD}|G5Wib}k~*iF\"><field name=\"NUM\">100</field></shadow></value><next><block type=\"servo_unit_write_angle\" id=\"U97nwIQA]kB/sTU9EdjI\"><field name=\"VARNAME\">servo_0</field><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"Ao#L?xc/opIDLvSML#=l\"><field name=\"NUM\">0</field></shadow></value></block></next></block></next></block></next></block></statement></block></next></block></statement><statement name=\"ELSE\"><block type=\"controls_repeat\" id=\"hI;7T2Kq%_!3YmjO7$8m\"><field name=\"TIMES\">5</field><statement name=\"DO\"><block type=\"timer_delay_ms\" id=\"YGpTMadw|FoFZi1LQELS\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"cL(lb.[Q!J!-tX7?zRdF\"><field name=\"NUM\">100</field></shadow></value><next><block type=\"servo_unit_write_angle\" id=\"$)jK9UEUrJ!4nWY?ZS0W\"><field name=\"VARNAME\">servo_0</field><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"LF~D|F~[H%8*SyddSVG^\"><field name=\"NUM\">0</field></shadow></value><next><block type=\"servo_unit_write_angle\" id=\"k+/Uqo%5@Mc.,.#58L;2\"><field name=\"VARNAME\">servo_0</field><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"$w!JY}K{Cge*!_e!3EY*\"><field name=\"NUM\">180</field></shadow></value><next><block type=\"servo_unit_write_angle\" id=\"N*o[3O##`%x,6M8;xkj`\"><field name=\"VARNAME\">servo_0</field><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"Qu/kWAs#!u-[,t[bpL!B\"><field name=\"NUM\">0</field></shadow></value><next><block type=\"timer_delay_ms\" id=\"2ND*.bnN^#aUQFr+mTs$\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"tx2KoRJhs/@}wg!z/aI}\"><field name=\"NUM\">100</field></shadow></value></block></next></block></next></block></next></block></next></block></statement></block></statement><next><block type=\"controls_ifelse\" id=\"LL$k|gW[[n[n~ZKoeJva\"><value name=\"IF0\"><block type=\"logic_compare\" id=\".N]0=Q@7WeB+Q-%5|9?2\"><field name=\"OP\">GTE</field><value name=\"A\"><block type=\"dht12_get_humidity\" id=\"r*aO@m1GX!AO*A[Luac`\"><field name=\"VARNAME\">env2_0</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"@O*9hx^mS=r5dCvOWdL5\"><field name=\"NUM\">95</field></block></value></block></value><statement name=\"DO0\"><block type=\"label_set_mode\" id=\"9K0=727mx2~AxFAl@1ON\"><field name=\"COMPONENT\">humText</field><field name=\"MODE\">False</field><next><block type=\"controls_repeat\" id=\"LsJH$OD}Jao+}0:Qb^gk\"><field name=\"TIMES\">3</field><statement name=\"DO\"><block type=\"speaker_vol\" id=\"Q]GU~Y^Wl5z?fBLxT{`W\"><value name=\"VOLUME\"><shadow type=\"math_number\" id=\"d$ck!4RPV2R$QQqEB=fB\"><field name=\"NUM\">0.2</field></shadow></value><next><block type=\"speaker_tone\" id=\"h]Ku}Vr1;E8S?K2-WuTF\"><value name=\"FREQ\"><shadow type=\"math_number\" id=\"ANs0kEK-hNm]w:|D1fGH\"><field name=\"NUM\">800</field></shadow></value><value name=\"TIMEOUT\"><shadow type=\"math_number\" id=\"c:?TrD@HFpa]T4Y23?.U\"><field name=\"NUM\">100</field></shadow></value></block></next></block></statement></block></next></block></statement><statement name=\"ELSE\"><block type=\"label_set_mode\" id=\"M6+=Lx4R.mMG4i}GHS{I\"><field name=\"COMPONENT\">humText</field><field name=\"MODE\">True</field></block></statement><next><block type=\"controls_if\" id=\"9Xt|S0p9|SucihsXucZU\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"][~%)S4{eU{TK{]-p^;V\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"pir_read\" id=\"PtNSMpE5`BQ!jSz|g:FP\"><field name=\"VARNAME\">pir_0</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"9..zT-6=|{|L9Ljdye~i\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"label_set_text\" id=\"8X_K^XL^PjINHf(l.[zD\"><field name=\"COMPONENT\">label4</field><value name=\"TEXT\"><shadow type=\"text\" id=\"]eba](Az_p:3t%U5Lp_{\"><field name=\"TEXT\">No person is around!</field></shadow></value></block></statement><next><block type=\"label_set_text\" id=\"J`a6n[^ta/V!O1Hh!tnn\"><field name=\"COMPONENT\">label4</field><value name=\"TEXT\"><shadow type=\"text\" id=\"ZQWR+85~R.-#+bb2Yah6\"><field name=\"TEXT\">People are around</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block>","Blockly.Remotes":[],"Blockly.RemotePlus":[{"id":"__title","blockId":"","createTime":1739420253522,"name":"M5RemoteTitle","dragAndDrop":false,"resizable":false,"options":{"minWidth":1,"minHeight":1,"maxWidth":6,"maxHeight":10,"defaultWidth":2,"defaultHeight":1},"w":2,"h":1,"bgColor":"#0080FF","color":"#fff","fontsize":"M","label":"M5Remote","interval":3000,"code":"","event":"","dataSource":"none","ezdataToken":"","topic":"","needShadow":false,"type":"title","x":0,"y":0}],"modules":["servo"],"cbIdList_":[],"eventCBIdList_":[]}

Secondary M5Stack Code

Python
{"components":[{"id":"____screen","createTime":1739344347436,"name":"screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#6900ff","backgroundImage":"","type":"screen"},{"id":"____buttonA","createTime":1739344347436,"name":"ButtonA","buttonIndex":0,"x":35,"y":216,"width":64,"height":24,"text":"ButtonA","visibility":false,"type":"button"},{"id":"____buttonB","createTime":1739344347436,"name":"ButtonB","buttonIndex":1,"x":125,"y":216,"width":64,"height":24,"text":"ButtonB","visibility":false,"type":"button"},{"id":"____buttonC","createTime":1739344347436,"name":"ButtonC","buttonIndex":2,"x":215,"y":216,"width":64,"height":24,"text":"ButtonC","visibility":false,"type":"button"},{"id":"9OLWW$CbojO2qpzj","createTime":1739344660708,"isCoreTwo":false,"isPaper":false,"name":"ToFLabel","x":173,"y":112,"color":"#FFFFFF","text":"Text","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":4},{"id":"+jcj677%pvS$YDyF","createTime":1739344715648,"isCoreTwo":false,"isPaper":false,"name":"LightLabel","x":173,"y":147,"color":"#FFFFFF","text":"Text","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":5},{"id":"8@hdpPSCnfmRPr@g","createTime":1739345284090,"isCoreTwo":false,"isPaper":false,"name":"LightText","x":41,"y":186,"color":"#FFFFFF","text":"Text","font":"lcd.FONT_DejaVu18","rotation":0,"type":"label","layer":6},{"id":"W!G$Vl!vd5a*cAD2","createTime":1739416482578,"isCoreTwo":false,"isPaper":false,"name":"ToFItem","x":41,"y":41,"color":"#FFFFFF","text":"Text","font":"lcd.FONT_DejaVu18","rotation":0,"type":"label","layer":12},{"id":"#w3qa318l+5uFPnx","createTime":1739416698245,"isCoreTwo":false,"isPaper":false,"name":"conveyor","x":41,"y":78,"color":"#FFFFFF","text":"Text","font":"lcd.FONT_DejaVu18","rotation":0,"type":"label","layer":13},{"id":"RNX4z5-D93=@diHc","createTime":1739417109768,"isCoreTwo":false,"isPaper":false,"name":"label0","x":41,"y":112,"color":"#FFFFFF","text":"Item Distance:","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":14},{"id":"ui=P2%EZNqmjKgr5","createTime":1739417127070,"isCoreTwo":false,"isPaper":false,"name":"label1","x":41,"y":147,"color":"#FFFFFF","text":"Light Level: ","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":15},{"id":"rl3gS6kMoo9JSf%E","createTime":1739417632306,"isCoreInk":false,"isPaper":false,"name":"title0","x":0,"y":0,"width":320,"height":20,"color":"#FFFFFF","backgroundColor":"#0000FF","text":"Smart Factory UI Secondary","textOffset":3,"font":"lcd.FONT_Default","type":"title","layer":16}],"type":"core","versions":"Beta","units":[{"id":"OUwTtNAqgvqN45i%","createTime":1739421753228,"stickType":"stick","type":"light","name":"light_0","port":"B","default":["A","B","C","D","Custom"],"user_port":["21","22"],"icon":"light.png"},{"id":"yxdRqyca#SH6HB%p","createTime":1739421753228,"stickNone":"stick","type":"tof","name":"tof_0","port":"A","default":["A","E","PAHUB","Custom"],"pb_port":[0,1,2,3,4,5],"new_pb_port":"0","user_port":["21","22"],"icon":"tof.png"},{"id":"p+Ue&8QePd3D9j8x","createTime":1739421753228,"type":"servo","name":"servo_0","port":"C","default":["A","B","C","E","Custom"],"user_port":["21","22"],"icon":"servo.png"}],"hats":[],"blockly":"<block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"50\" y=\"50\"><next><block type=\"servo_unit_write_angle\" id=\"#.0M.nD_(Sf(ieD^4fa%\"><field name=\"VARNAME\">servo_0</field><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"1iC|OBF:h,P|B`r[KaEe\"><field name=\"NUM\">0</field></shadow></value><next><block type=\"basic_on_loop\" id=\"`{;s}aF5;OWiq[I.mA_:\"><statement name=\"LOOP\"><block type=\"label_set_text\" id=\"B|En{T?~`/Zpr6?E9E~#\"><field name=\"COMPONENT\">ToFLabel</field><value name=\"TEXT\"><shadow type=\"text\" id=\"4iB$*k}G{s6L_*+;UCLl\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"unit_tof_state\" id=\"9dvzyYA=7)qi;uG}TA*m\"><field name=\"TOF\">tof_0</field></block></value><next><block type=\"label_set_text\" id=\"EpYcS.a)=-hA`)f]yxub\"><field name=\"COMPONENT\">LightLabel</field><value name=\"TEXT\"><shadow type=\"text\" id=\"52PXQZ{Kx9uQgA+~f$|+\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"light_a_read\" id=\"!~k1Gzt8Za^U!}x{usAN\"><field name=\"VARNAME\">light_0</field></block></value><next><block type=\"controls_ifelse\" id=\"us?Hnr)m{Dy5TebNZE./\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"UH~Xe_Wbw25CRFhktAu$\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"unit_tof_state\" id=\"42@?d/@a^=HD#{~0NX%6\"><field name=\"TOF\">tof_0</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"Btr:`)LBnH4~uRox#_ok\"><field name=\"NUM\">300</field></block></value></block></value><statement name=\"DO0\"><block type=\"label_set_text\" id=\"7psY_@HD$D*K5Wi{AB/Z\"><field name=\"COMPONENT\">ToFItem</field><value name=\"TEXT\"><shadow type=\"text\" id=\"%^BHN]?f4FcVNH,d!f~9\"><field name=\"TEXT\">No Items Detected...</field></shadow></value><next><block type=\"timer_delay\" id=\"y|u]#qOWT}C=kfzNFMy$\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"VI8S_LqB`K?[~HplVdo.\"><field name=\"NUM\">3</field></shadow></value><next><block type=\"controls_if\" id=\":9a+R$ic(pNBG(EfCK=a\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"Rx@C;CP1Xp~i~E-6g6QQ\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"unit_tof_state\" id=\"wXWad]tOdN~p~@9qXne7\"><field name=\"TOF\">tof_0</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"?b`$0qDv0R%;:R(23Rl-\"><field name=\"NUM\">300</field></block></value></block></value><statement name=\"DO0\"><block type=\"servo_unit_write_angle\" id=\"k@9-6^:geGte/+u~D7sh\"><field name=\"VARNAME\">servo_0</field><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"M%yi{O*o`e!BU8}q_Xsi\"><field name=\"NUM\">90</field></shadow></value><next><block type=\"label_set_text\" id=\"|Tp@uPQduLvE4H?U6UmV\"><field name=\"COMPONENT\">conveyor</field><value name=\"TEXT\"><shadow type=\"text\" id=\"vG}7V29gL+4uTE_bk7H,\"><field name=\"TEXT\">Conveyor Off.</field></shadow></value></block></next></block></statement></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"servo_unit_write_angle\" id=\"pra)-|mrW)8?dF21D|j%\"><field name=\"VARNAME\">servo_0</field><value name=\"ANGLE\"><shadow type=\"math_number\" id=\"[4G2^$EZN@%975YHI2cb\"><field name=\"NUM\">0</field></shadow></value><next><block type=\"label_set_text\" id=\"-p36B5vT/[59u.G~C]rI\"><field name=\"COMPONENT\">ToFItem</field><value name=\"TEXT\"><shadow type=\"text\" id=\"4Lr7Lcc.{ve^;_;njUkk\"><field name=\"TEXT\">Items Detected on Coveyor</field></shadow></value><next><block type=\"label_set_text\" id=\"Ipt/nC{xwiOIBbqNHFh-\"><field name=\"COMPONENT\">conveyor</field><value name=\"TEXT\"><shadow type=\"text\" id=\"y9d@(T@FKPaeCe?!Zg4d\"><field name=\"TEXT\">Conveyor On.</field></shadow></value></block></next></block></next></block></statement><next><block type=\"controls_ifelse\" id=\"r+}x0=OP|AG@SdGk3%G(\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"MB}Gk5mN4{1`?2XUyRqi\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"light_a_read\" id=\"xv)}6.#jWwlbQXqbG*/v\"><field name=\"VARNAME\">light_0</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"c=F]T1=sA=s$0an%Y-3j\"><field name=\"NUM\">100</field></block></value></block></value><statement name=\"DO0\"><block type=\"label_set_text\" id=\"JK@$kdWHa8;-^anVeu=K\"><field name=\"COMPONENT\">LightText</field><value name=\"TEXT\"><shadow type=\"text\" id=\"5R=0IuJ{2VU--PWZzGuZ\"><field name=\"TEXT\">Lights are on</field></shadow></value></block></statement><statement name=\"ELSE\"><block type=\"label_set_text\" id=\"R7aOK_.LJ,VtS1#]6|xn\"><field name=\"COMPONENT\">LightText</field><value name=\"TEXT\"><shadow type=\"text\" id=\"l)?sGkBiW~=L+V.j#zE.\"><field name=\"TEXT\">Lights are off</field></shadow></value></block></statement></block></next></block></next></block></next></block></statement></block></next></block></next></block>","Blockly.Remotes":[],"Blockly.RemotePlus":[{"id":"__title","blockId":"","createTime":1739421753228,"name":"M5RemoteTitle","dragAndDrop":false,"resizable":false,"options":{"minWidth":1,"minHeight":1,"maxWidth":6,"maxHeight":10,"defaultWidth":2,"defaultHeight":1},"w":2,"h":1,"bgColor":"#0080FF","color":"#fff","fontsize":"M","label":"M5Remote","interval":3000,"code":"","event":"","dataSource":"none","ezdataToken":"","topic":"","needShadow":false,"type":"title","x":0,"y":0}],"modules":["rgb"],"cbIdList_":[],"eventCBIdList_":[]}

Credits

Kristalyn Lumy
1 project • 0 followers
Contact
Peach Devils
0 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.