The project is about how can we design a device to ensure that there is no loss of retail orders due to out-of-stock periods, detect high temperatures (3°C) for dairy products, to keep track of product quality and prevent deterioration and detect human movement to prevent theft while decreasing the amount of work from the staff.This product would help in alerting the staff when the goods are at a low stock (using RFID) and at a detrimental temperature (using ENV II). Human movement detection would alert the buzzer in order to prevent theif(using PIR). This is to prevent a loss of sales. Our project would be an automated way to solve this problem. We decided to make it because after our research on smart retail, we concluded that consumers say that 1 in 5 items they want to buy is out of stock at their local retailer. Furthermore standing at the retailer point of view, there will be lesser pressure on the staff as they workload will be lessen due to the help with these sensors.
https://www.youtube.com/watch?v=y5KC1TCT_Ew
'''''''''''''''''''
{"components":[{"id":"____screen","createTime":1668125852519,"name":"screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#222222","backgroundImage":"","type":"screen"},{"id":"____buttonA","createTime":1668125852519,"name":"ButtonA","buttonIndex":0,"x":35,"y":216,"width":64,"height":24,"text":"ButtonA","visibility":false,"type":"button"},{"id":"____buttonB","createTime":1668125852519,"name":"ButtonB","buttonIndex":1,"x":125,"y":216,"width":64,"height":24,"text":"ButtonB","visibility":false,"type":"button"},{"id":"____buttonC","createTime":1668125852519,"name":"ButtonC","buttonIndex":2,"x":215,"y":216,"width":64,"height":24,"text":"ButtonC","visibility":false,"type":"button"},{"id":"kY!MVaj=kZiir@LW","createTime":1673418094332,"isCoreTwo":false,"isPaper":false,"name":"label0","x":121,"y":187,"color":"#FFFFFF","text":"Detecting...","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":49},{"id":"UqE=-cD&c$uVWdI4","createTime":1673418355525,"isCoreTwo":false,"isPaper":false,"name":"label1","x":99,"y":216,"color":"#FFFFFF","text":"Intruder Detected!","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":51},{"id":"K+kKxzb*!aB99V$6","createTime":1673597844034,"isCoreTwo":false,"isCoreInk":false,"isPaper":false,"name":"image0","x":100,"y":60,"imagePath":"thief.png","visibility":true,"imageInvert":false,"imageThreshold":128,"type":"image","layer":7},{"id":"2Jrfge-%dAbygXTg","createTime":1673598389554,"isCoreTwo":false,"isCoreInk":false,"isPaper":false,"name":"image1","x":100,"y":60,"imagePath":"detective.png","visibility":true,"imageInvert":false,"imageThreshold":128,"type":"image","layer":7},{"id":"F+%fpD^4`H*ACmYD","createTime":1673418094332,"isCoreTwo":false,"isPaper":false,"name":"label2","x":26,"y":204,"color":"#FFFFFF","text":"Press Button A to activate Thief Security Mode","font":"lcd.FONT_DefaultSmall","rotation":0,"type":"label","layer":8},{"id":"MX`K1S6LrMN5*eu_","createTime":1673703258331,"isCoreTwo":false,"isPaper":false,"name":"label3","x":16,"y":14,"color":"#FFFFFF","text":"Temperature:","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":22},{"id":"IA^B9rU8LOS+mTR#","createTime":1673703285561,"isCoreTwo":false,"isCoreInk":false,"isPaper":false,"name":"image2","x":190,"y":0,"imagePath":"happyface2.png","visibility":true,"imageInvert":false,"imageThreshold":128,"type":"image","layer":23},{"id":"Jm4m5b6BxmhD$ov2","createTime":1673703306978,"isCoreTwo":false,"isCoreInk":false,"isPaper":false,"name":"image3","x":240,"y":0,"imagePath":"Sad face.png","visibility":true,"imageInvert":false,"imageThreshold":128,"type":"image","layer":24},{"id":"^DV&0kJLCVca0v8I","createTime":1673703394261,"isCoreTwo":false,"isPaper":false,"name":"label4","x":117,"y":99,"color":"#FFFFFF","text":"Text","font":"lcd.FONT_DejaVu40","rotation":0,"type":"label","layer":25}],"type":"core","versions":"Beta","units":[{"id":"dYktmm+#oKkQbK_^","createTime":1674532411071,"type":"pir","name":"pir_0","port":"B","default":["A","B","C","E","Custom"],"user_port":["21","22"],"icon":"pir.png"},{"id":"vQlL=0dNP6q2`#GW","createTime":1674532411071,"hidden":false,"type":"env2","name":"env2_1","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"}],"hats":[],"blockly":"<block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"-1850\" y=\"-290\"><next><block type=\"image_hide\" id=\";ZI[-+v+[=-!:ksZS(/=\"><field name=\"COMPONENT\">image0</field><next><block type=\"image_hide\" id=\"aec3z|-p$B5d7S#P]N#r\"><field name=\"COMPONENT\">image1</field><next><block type=\"label_set_mode\" id=\"xE^Dy4QVj?v[iI3{bWQ:\"><field name=\"COMPONENT\">label0</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"V?BH7utn}wFlQr#UqHJ6\"><field name=\"COMPONENT\">label1</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"pRWIWby;XLyk*Q=M*gH+\"><field name=\"COMPONENT\">label2</field><field name=\"MODE\">False</field><next><block type=\"label_set_text\" id=\"Zt5lYSRi!}6]YoX:hRgq\"><field name=\"COMPONENT\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\"M_OhH#magn/dicVe8:du\"><field name=\"TEXT\">Detecting...</field></shadow></value><next><block type=\"label_set_text\" id=\"c2G=TPFGapo9wW)}}M-E\"><field name=\"COMPONENT\">label1</field><value name=\"TEXT\"><shadow type=\"text\" id=\"lw5.B$FdFwKbfG)UZnKP\"><field name=\"TEXT\">Intruder Detected!</field></shadow></value><next><block type=\"label_set_mode\" id=\"f32M(o6^?yVOfJ~bd;D7\"><field name=\"COMPONENT\">label0</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"Bb5$07G`C2t[/,xW08VW\"><field name=\"COMPONENT\">label1</field><field name=\"MODE\">True</field><next><block type=\"basic_on_loop\" id=\"{#:Z`f)X}~d#3z#}ISv1\"><statement name=\"LOOP\"><block type=\"procedures_callnoreturn\" id=\"c6*}+F^;Ta*0YeO*@Koq\"><mutation name=\"ENVII\"></mutation></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block><block type=\"procedures_defnoreturn\" id=\"RAUr8UIwHa-awZ$]%tvH\" x=\"-1370\" y=\"-250\"><field name=\"NAME\">ENVII</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"label_set_text\" id=\"Z:^3#+;YXYDt?BO)k460\"><field name=\"COMPONENT\">label4</field><value name=\"TEXT\"><shadow type=\"text\" id=\"/PYAHbYE[|lOU`2/l2RB\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"dht12_get_temperature\" id=\"H_O(KatF|7?|FILY)aq/\"><field name=\"VARNAME\">env2_1</field></block></value><next><block type=\"controls_if\" id=\"-7zR?n1}ZzZ13nL@G`-r\"><mutation else=\"1\"></mutation><value name=\"IF0\"><block type=\"logic_compare\" id=\"0#:1JJmy2^IFnZd}g.3^\"><field name=\"OP\">LTE</field><value name=\"A\"><block type=\"dht12_get_temperature\" id=\")75n:io}n-AAZm/X32PP\"><field name=\"VARNAME\">env2_1</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"*qI-|NNJP7jU`UK#=E{.\"><field name=\"NUM\">3</field></block></value></block></value><statement name=\"DO0\"><block type=\"rgb_set_all\" id=\"#ynG`*WJbh.DgGCa!hd|\"><field name=\"COLOR\">#33ffff</field><next><block type=\"image_hide\" id=\"fD_9Bsz$;_a/PSDoeXGG\"><field name=\"COMPONENT\">image3</field><next><block type=\"image_show\" id=\"_v2jTJNN6_YG:u$YC+RQ\"><field name=\"COMPONENT\">image2</field></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"rgb_set_all\" id=\"xxLl99K}5v*C@ylo8ctU\"><field name=\"COLOR\">#ff0000</field><next><block type=\"image_hide\" id=\"w4t@tZc_8GfHOhgA=v}^\"><field name=\"COMPONENT\">image2</field><next><block type=\"image_show\" id=\"cZZsK*5=3h^-kZvS56VK\"><field name=\"COMPONENT\">image3</field></block></next></block></next></block></statement></block></next></block></statement></block><block type=\"button_callback\" id=\"It:AIBgTzpEXwGvtZ3Q|\" x=\"-1390\" y=\"110\"><field name=\"BUTTON\">A</field><field name=\"EVENT\">wasPressed</field><statement name=\"FUNC\"><block type=\"label_set_font\" id=\"$DR5yT;M-GjU,ZGxj%13\"><field name=\"COMPONENT\">label4</field><field name=\"FONT_FAMILY\">FONT_Default</field><next><block type=\"label_set_position\" id=\"Hw(#+YxH$|M4*c/7Ws[F\"><field name=\"COMPONENT\">label4</field><value name=\"X\"><shadow type=\"math_number\" id=\"UwsZ!p)y!%/|5=MJ,7*n\"><field name=\"NUM\">115</field></shadow></value><value name=\"Y\"><shadow type=\"math_number\" id=\"3Qu@:9J/fr+RtcO[CD^L\"><field name=\"NUM\">15</field></shadow></value><next><block type=\"label_set_mode\" id=\"[n%?aZSFu|#zwy*eTWo^\"><field name=\"COMPONENT\">label2</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"rN-C`fvYu$|[wD3P}T0m\"><field name=\"COMPONENT\">label4</field><field name=\"MODE\">False</field><next><block type=\"basic_on_loop\" id=\")G{C1kaChIeoER2b-G3)\"><statement name=\"LOOP\"><block type=\"procedures_callnoreturn\" id=\"$pidfVdFPd[Nk1/`CCym\"><mutation name=\"ENVII\"></mutation><next><block type=\"controls_ifelse\" id=\"`WB+tUg|On@e;Eh/)a(%\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"0Z@-f4]#F@Z8)kW2PLJd\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"pir_read\" id=\"`IYcoE#cL:py^@05E75j\"><field name=\"VARNAME\">pir_0</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"DQYKa2P]EW-8O2!!0/84\"><field name=\"NUM\">1</field></block></value></block></value><statement name=\"DO0\"><block type=\"label_set_mode\" id=\"o7oC}zuO83`jK+{h5I-z\"><field name=\"COMPONENT\">label0</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"xND._^7=eXqO-]3u9L*f\"><field name=\"COMPONENT\">label1</field><field name=\"MODE\">False</field><next><block type=\"image_hide\" id=\"4HfIMUWjlB4)exY-9nV*\"><field name=\"COMPONENT\">image1</field><next><block type=\"image_show\" id=\"vr!2dh#E!o`WkT:rTr{u\"><field name=\"COMPONENT\">image0</field><next><block type=\"speaker_vol\" id=\"SwiQhM!n*8DwQT3)!{ug\"><value name=\"VOLUME\"><shadow type=\"math_number\" id=\"99aI;3gRv^;!o,%R]R^X\"><field name=\"NUM\">0.5</field></shadow></value><next><block type=\"speaker_tone\" id=\"$Ca08H4qRM77lQ%x[!TO\"><value name=\"FREQ\"><shadow type=\"math_number\" id=\"9~wh+sFxsy$|5OoI!{V.\"><field name=\"NUM\">1800</field></shadow></value><value name=\"TIMEOUT\"><shadow type=\"math_number\" id=\"wu5:!cs!#w!+uo-Md:(.\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"controls_repeat\" id=\"k;uHh{mH}XV,)7lMJ?]E\"><field name=\"TIMES\">5</field><statement name=\"DO\"><block type=\"rgb_set_all\" id=\"j)241HC:sqUR]PwgvHOa\"><field name=\"COLOR\">#ff0000</field><next><block type=\"timer_delay\" id=\"1fj/(,~*W0lF6fs?CU)W\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"=t=}F}[Xm|P*?7vs.4J[\"><field name=\"NUM\">0.3</field></shadow></value><next><block type=\"rgb_set_all\" id=\"ErLL`Nvn+0R9t=TuYl+)\"><field name=\"COLOR\">#330033</field><next><block type=\"timer_delay\" id=\"Dt9GiX}4fSe2WrlZ,IRN\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"tj[J:Gr0vmx`F]}qf5oD\"><field name=\"NUM\">0.3</field></shadow></value></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"speaker_vol\" id=\"tr,)T5Lb,HMM/]KT~==g\"><value name=\"VOLUME\"><shadow type=\"math_number\" id=\";/$]^Int5Dk@.{Gn[k4(\"><field name=\"NUM\">0</field></shadow></value><next><block type=\"speaker_tone\" id=\"-XLZ3O[+wDnj,N1brSv$\"><value name=\"FREQ\"><shadow type=\"math_number\" id=\"rt^%?f,bAKv@9m(*j{HG\"><field name=\"NUM\">1800</field></shadow></value><value name=\"TIMEOUT\"><shadow type=\"math_number\" id=\"1zv+sNlRilh*(M2$cm-0\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"label_set_mode\" id=\"1BG^AW]ZFs@Tae,)d7%/\"><field name=\"COMPONENT\">label0</field><field name=\"MODE\">False</field><next><block type=\"label_set_mode\" id=\"zELwLA~@:TDD%,Ri.$6^\"><field name=\"COMPONENT\">label1</field><field name=\"MODE\">True</field><next><block type=\"image_show\" id=\"$cS2_Uuq^Dqzw2#6z-2W\"><field name=\"COMPONENT\">image1</field><next><block type=\"image_hide\" id=\"EE6{Ntgvgk3|]l|n@y9U\"><field name=\"COMPONENT\">image0</field></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></statement></block></next></block></next></block></next></block></next></block></statement></block><block type=\"controls_ifelse\" id=\"~}c=eHiCFdxE-Z_zXsk(\" disabled=\"true\" x=\"1430\" y=\"670\"></block><block type=\"rgb_set_all\" id=\"8?(yR$?hI-~e0%J+1Y$g\" disabled=\"true\" x=\"-770\" y=\"830\"><field name=\"COLOR\">#330033</field></block>","Blockly.Remotes":[],"Blockly.RemotePlus":[{"id":"__title","blockId":"","createTime":1674532411071,"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_":[]}
{"components":[{"id":"____screen","createTime":1668125852519,"name":"screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#000000","backgroundImage":"","type":"screen"},{"id":"____buttonA","createTime":1668125852519,"name":"ButtonA","buttonIndex":0,"x":35,"y":216,"width":64,"height":24,"text":"ButtonA","visibility":false,"type":"button"},{"id":"____buttonB","createTime":1668125852519,"name":"ButtonB","buttonIndex":1,"x":125,"y":216,"width":64,"height":24,"text":"ButtonB","visibility":false,"type":"button"},{"id":"____buttonC","createTime":1668125852519,"name":"ButtonC","buttonIndex":2,"x":215,"y":216,"width":64,"height":24,"text":"ButtonC","visibility":false,"type":"button"},{"id":"&S69w9bSjRVFwFiI","createTime":1673603226756,"isCoreTwo":false,"isPaper":false,"name":"quantity","x":133,"y":99,"color":"#FFFFFF","text":"20","font":"lcd.FONT_DejaVu40","rotation":0,"type":"label","layer":20},{"id":"tZhp5PQwNkgWW_S2","createTime":1673603226756,"isCoreTwo":false,"isPaper":false,"name":"label0","x":32,"y":63,"color":"#FFFFFF","text":"Product Quantity","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":21},{"id":"B8Ti$OIPnh^G6Z=B","createTime":1673603823020,"isCoreTwo":false,"isPaper":false,"name":"label1","x":146,"y":166,"color":"#FFFFFF","text":"Running Out Of Stock","font":"lcd.FONT_Default","rotation":0,"type":"label","layer":22},{"id":"F-N8LA+MdnW&oO+p","createTime":1673604033816,"isCoreTwo":false,"isCoreInk":false,"isPaper":false,"name":"image0","x":13,"y":118,"imagePath":"warning.png","visibility":true,"imageInvert":false,"imageThreshold":128,"type":"image","layer":25},{"id":"3i9nrLT!RP#M29E8","createTime":1673604636606,"isCoreTwo":false,"isCoreInk":false,"isPaper":false,"name":"image1","x":160,"y":190,"imagePath":"outofstock.png","visibility":true,"imageInvert":false,"imageThreshold":128,"type":"image","layer":26},{"id":"NnmQZ@RT1FNu+wa1","createTime":1675416109680,"isCoreTwo":false,"isCoreInk":false,"isPaper":false,"name":"image2","x":207,"y":33,"imagePath":"milk.png","visibility":true,"imageInvert":false,"imageThreshold":128,"type":"image","layer":9,"width":null,"height":null,"radius":null}],"type":"core","versions":"Beta","units":[{"id":"i0nA2V8fN*aNQ_z+","createTime":1675415011019,"type":"rfid","name":"rfid_2","port":"A","default":["A","E","PAHUB","Custom"],"pb_port":[0,1,2,3,4,5],"new_pb_port":"0","user_port":["21","22"],"icon":"rfid.png"}],"hats":[],"blockly":"<variables><variable id=\"3VOtLjF!N2VEby9.|7ru\">i</variable></variables><block type=\"label_set_mode\" id=\"xE^Dy4QVj?v[iI3{bWQ:\" disabled=\"true\" x=\"-810\" y=\"-370\"><field name=\"COMPONENT\">label0</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"(6J@N+^;Fe~1,sT|#_jR\" disabled=\"true\"><field name=\"COMPONENT\">label1</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"V?BH7utn}wFlQr#UqHJ6\" disabled=\"true\"><field name=\"COMPONENT\">quantity</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"yu`)~)6sAdb~;Yi0toAA\" disabled=\"true\"><field name=\"COMPONENT\">quantity</field><field name=\"MODE\">False</field><next><block type=\"label_set_text\" id=\"Mju^*iAz.pAnfKt-jz1o\" disabled=\"true\"><field name=\"COMPONENT\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\":{kN_IMm,rjAC9t?7vXE\"><field name=\"TEXT\">Produact Quantity</field></shadow><block type=\"rfid_uid\" id=\"|G5=U1*pmptLW;fBUNK^\" disabled=\"true\"><field name=\"RFID\">rfid_2</field></block></value><next><block type=\"basic_on_loop\" id=\"q_L-5QZD^bcawHsz+RIb\" disabled=\"true\"><statement name=\"LOOP\"><block type=\"basic_on_loop\" id=\"F|yjDp9MIW6U+FRGxM]x\" disabled=\"true\"></block></statement></block></next></block></next></block></next></block></next></block></next></block><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"-190\" y=\"-310\"><next><block type=\"label_set_mode\" id=\"j]Epn0bTogTnaxvk;=-!\"><field name=\"COMPONENT\">label0</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"78Bpc{jVh[_6n3rp;}pC\"><field name=\"COMPONENT\">quantity</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"=loVe-S(g1_ZA8CL-BT7\"><field name=\"COMPONENT\">label1</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"Pqjz.;*K9.:)xSW8b~~F\"><field name=\"COMPONENT\">quantity</field><field name=\"MODE\">True</field><next><block type=\"image_hide\" id=\"o`.@LXfHHC|FJT]JN-sD\"><field name=\"COMPONENT\">image0</field><next><block type=\"image_hide\" id=\"HKIV`7SdV:M?U4m,ez+~\"><field name=\"COMPONENT\">image1</field><next><block type=\"label_set_mode\" id=\"llcxyN5rx}Nqz20bOzW,\"><field name=\"COMPONENT\">label0</field><field name=\"MODE\">False</field><next><block type=\"label_set_mode\" id=\"*Sjw(y=[No#,0`?9-T.H\"><field name=\"COMPONENT\">quantity</field><field name=\"MODE\">False</field><next><block type=\"variables_set\" id=\"oNam=/0`HL6H%+IR`5[d\"><field name=\"VAR\" id=\"3VOtLjF!N2VEby9.|7ru\">i</field><value name=\"VALUE\"><block type=\"math_number\" id=\")coR*97/5Xf9Pae/02fS\"><field name=\"NUM\">20</field></block></value><next><block type=\"controls_whileUntil\" id=\"qKufce?6!F#Sm1vKJtgD\"><field name=\"MODE\">UNTIL</field><value name=\"BOOL\"><block type=\"logic_compare\" id=\"TiNR)@F}haXJw:^skaEW\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\",F*[?me?oNR`9-^}^,=3\"><field name=\"VAR\" id=\"3VOtLjF!N2VEby9.|7ru\">i</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"bJUMTLoK%i,uBurdn$sZ\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO\"><block type=\"controls_if\" id=\"1vp.=QkRm~2}f}Rn;`9~\"><value name=\"IF0\"><block type=\"rfid_cardOn\" id=\"yZgl=z[gP:?FR^Wn/852\"><field name=\"RFID\">rfid_2</field></block></value><statement name=\"DO0\"><block type=\"math_change\" id=\"J0gb~ogk6eM%cMm)v0})\"><field name=\"VAR\" id=\"3VOtLjF!N2VEby9.|7ru\">i</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"i@LhJ``HLq5Q(D%YWf6-\"><field name=\"NUM\">-1</field></shadow></value><next><block type=\"timer_delay\" id=\"R}L)X[)?k_E$^iLxoSkr\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"mAlJ|o%rf-h5tll6-iSE\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"label_set_text\" id=\"%D1.Ea6:6LbI8nwEuYCm\"><field name=\"COMPONENT\">quantity</field><value name=\"TEXT\"><shadow type=\"text\" disabled=\"true\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"Ok6];OdYintBm.3`aBR]\"><field name=\"VAR\" id=\"3VOtLjF!N2VEby9.|7ru\">i</field></block></value><next><block type=\"label_set_text\" id=\"hH1K3O=N$E}]/M6-*qL]\"><field name=\"COMPONENT\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\"qS$4C[dz{TA/{C%$N98b\"><field name=\"TEXT\">Product Quantity</field></shadow></value><next><block type=\"controls_if\" id=\"{eO4:%(**1UNj2H$(F*U\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"fzF)B;LDTO4Yt#P9M~ny\"><field name=\"OP\">LTE</field><value name=\"A\"><block type=\"variables_get\" id=\"%U)uZv.bC|-jA1W_?m[(\"><field name=\"VAR\" id=\"3VOtLjF!N2VEby9.|7ru\">i</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"/jW*x14E4lg:IHhoJ*/f\"><field name=\"NUM\">5</field></block></value></block></value><statement name=\"DO0\"><block type=\"label_set_color\" id=\"QYjSj=^yPR-z.9_%Ml=9\"><field name=\"COMPONENT\">quantity</field><field name=\"COLOR\">#ff6600</field><next><block type=\"image_show\" id=\"23M]7#Cb93_vc_5w1FON\"><field name=\"COMPONENT\">image0</field><next><block type=\"label_set_text\" id=\"/VzmtgOFl4yAzM;pd.?C\"><field name=\"COMPONENT\">label1</field><value name=\"TEXT\"><shadow type=\"text\" id=\"F4XGEfJ]@aE-?u6Miiaq\"><field name=\"TEXT\">Running out of stock</field></shadow></value><next><block type=\"controls_repeat\" id=\"M!=Q,3^mkhVls}8SkS|R\"><field name=\"TIMES\">2</field><statement name=\"DO\"><block type=\"rgb_set_all\" id=\"n_oY{)5nsHvL5$opB!Wd\"><field name=\"COLOR\">#ffff00</field><next><block type=\"timer_delay\" id=\"4Cc#_m5zGjLf,uRQ}PxM\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"`NAhcghG0fbC2$}WUrz0\"><field name=\"NUM\">0.1</field></shadow></value><next><block type=\"rgb_set_all\" id=\"_+kM|(1mMhBM@1btz+qH\"><field name=\"COLOR\">#ff6600</field><next><block type=\"timer_delay\" id=\"ftEcer/ht6WS;Q!3,$_T\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"FNuG*pkI%}%F}r*8#a5f\"><field name=\"NUM\">0.1</field></shadow></value></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></statement><next><block type=\"controls_if\" id=\"U7nMb(}};,tN2PDzLM?D\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"UqTGo/.?d6yO8[Shwh?V\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"K,XTP,/_%GQsQi8;smMC\"><field name=\"VAR\" id=\"3VOtLjF!N2VEby9.|7ru\">i</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"iuVef@-UQ=nkH;qnT]iY\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"image_show\" id=\"IN!Sfzq,~INgRCw=9ORN\"><field name=\"COMPONENT\">image1</field><next><block type=\"label_set_color\" id=\"_k=?;*98mK9*=/MGTB?I\"><field name=\"COMPONENT\">quantity</field><field name=\"COLOR\">#ff0000</field><next><block type=\"label_set_mode\" id=\"na.G:cqd`,#*2qVBr!H$\"><field name=\"COMPONENT\">label1</field><field name=\"MODE\">True</field><next><block type=\"speaker_tone\" id=\"+/)/v0$BPoQh.O]jd?JS\"><value name=\"FREQ\"><shadow type=\"math_number\" id=\"Q.[Gf@Dt2NJ+V;Nb)e-q\"><field name=\"NUM\">1800</field></shadow></value><value name=\"TIMEOUT\"><shadow type=\"math_number\" id=\"MDcrR4v*P0(@-x|:X^0u\"><field name=\"NUM\">100</field></shadow></value><next><block type=\"speaker_vol\" id=\"6+Eubi!hV:p/Yc)SlEX8\"><value name=\"VOLUME\"><shadow type=\"math_number\" id=\"%jWl}?At4?Z=GA?3,4;g\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"controls_repeat\" id=\"KhV*QEE}TlEgQQq)0_Je\"><field name=\"TIMES\">2</field><statement name=\"DO\"><block type=\"rgb_set_all\" id=\"_NYo%]2gw^5[Cg6WuO`T\"><field name=\"COLOR\">#ff0000</field><next><block type=\"timer_delay\" id=\"4(.]KV$FO93xEjGv;=v*\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"!=4y]K4h`aKg6HS2Z[?P\"><field name=\"NUM\">0.1</field></shadow></value><next><block type=\"rgb_set_all\" id=\"?2O?:Y)d==q,7eLiQxHn\"><field name=\"COLOR\">#ff0000</field><next><block type=\"timer_delay\" id=\";+$#NW!KcGE,pTIv];F)\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"E188:Q5s:hto{#Ru-JEB\"><field name=\"NUM\">0.1</field></shadow></value></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></statement></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block><block type=\"label_set_mode\" id=\"IM?A*};,t_H:`Q:`RFcx\" disabled=\"true\" x=\"-730\" y=\"-110\"><field name=\"COMPONENT\">label1</field><field name=\"MODE\">False</field></block><block type=\"controls_if\" id=\"`+GiVculFA;~D/6Ux#~,\" disabled=\"true\" x=\"490\" y=\"-170\"><value name=\"IF0\"><block type=\"rfid_cardOn\" id=\"]6f6Botoak,/z5nI.SNU\" disabled=\"true\"><field name=\"RFID\">rfid_2</field></block></value><statement name=\"DO0\"><block type=\"controls_for\" id=\"^ObxkemXwrPghQ4Z-/ke\" disabled=\"true\"><field name=\"VAR\" id=\"3VOtLjF!N2VEby9.|7ru\">i</field><value name=\"FROM\"><block type=\"math_number\" id=\"%.Z@039ld,.IO9Y!Bx~F\" disabled=\"true\"><field name=\"NUM\">20</field></block></value><value name=\"TO\"><block type=\"math_number\" id=\"QiChq.L[MO$@tsx#]0{b\" disabled=\"true\"><field name=\"NUM\">0</field></block></value><value name=\"BY\"><block type=\"math_number\" id=\"YWiJX4H@IPF2U52R}QtS\" disabled=\"true\"><field name=\"NUM\">-1</field></block></value><statement name=\"DO\"><block type=\"controls_if\" id=\"E{2|;bBZpI+I0nfR4z7R\" disabled=\"true\"><value name=\"IF0\"><block type=\"rfid_cardOn\" id=\"gaL#JP3!u;fTQ[FeAgS6\" disabled=\"true\"><field name=\"RFID\">rfid_2</field></block></value><statement name=\"DO0\"><block type=\"timer_delay\" id=\",UB3$yG$FuIF(~L-$8jz\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"~Alx*CU8x@+8e{@E)TVa\" disabled=\"true\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"label_set_text\" id=\"gZuYF!c2~W:VE%b,1Lwb\" disabled=\"true\"><field name=\"COMPONENT\">quantity</field><value name=\"TEXT\"><shadow type=\"text\" id=\"]X[Q,$FiZniT_P(4Q5zP\" disabled=\"true\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"~N(^u[^nEQ*;$F1Xu6+3\" disabled=\"true\"><field name=\"VAR\" id=\"3VOtLjF!N2VEby9.|7ru\">i</field></block></value><next><block type=\"label_set_text\" id=\"FZ-GJ~JP!T!cIXO64:lL\" disabled=\"true\"><field name=\"COMPONENT\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\"yuIQ9*ct06;a$@?Fr)(u\" disabled=\"true\"><field name=\"TEXT\">Product Quantity</field></shadow></value><next><block type=\"controls_if\" id=\"_YL2d0,3%hCW5+G-[AN}\" disabled=\"true\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"{I1{wDwC|M?}TTwp,[lS\" disabled=\"true\"><field name=\"OP\">LTE</field><value name=\"A\"><block type=\"variables_get\" id=\"T@U5Jg$p8*o-0.Q2UtA:\" disabled=\"true\"><field name=\"VAR\" id=\"3VOtLjF!N2VEby9.|7ru\">i</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"=7VzBx)$boGbY4CU9mTs\" disabled=\"true\"><field name=\"NUM\">5</field></block></value></block></value><statement name=\"DO0\"><block type=\"label_set_color\" id=\"?=^b6CXA#]%#Vapt97^1\" disabled=\"true\"><field name=\"COMPONENT\">quantity</field><field name=\"COLOR\">#ff6600</field><next><block type=\"image_show\" id=\"RTW*1xFF~oQT[#{S+gwy\" disabled=\"true\"><field name=\"COMPONENT\">image0</field><next><block type=\"label_set_text\" id=\"SG^b24i-8p5v4FaK;7dR\" disabled=\"true\"><field name=\"COMPONENT\">label1</field><value name=\"TEXT\"><shadow type=\"text\" id=\"wp@U,;?q/gly=`fltYHe\" disabled=\"true\"><field name=\"TEXT\">Running out of stock</field></shadow></value><next><block type=\"controls_repeat\" id=\"l32vds4MNTu13lyTi!Gx\" disabled=\"true\"><field name=\"TIMES\">2</field><statement name=\"DO\"><block type=\"rgb_set_all\" id=\"!uSzCC+=uP{Hx9^(7e#^\" disabled=\"true\"><field name=\"COLOR\">#ffff00</field><next><block type=\"timer_delay\" id=\"k^1b^gwMl#I%ra`L$L0q\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"lE[W2t|(xrl/MkS+R/og\" disabled=\"true\"><field name=\"NUM\">0.1</field></shadow></value><next><block type=\"rgb_set_all\" id=\"zYIZc=.RilO}_x9rT)ys\" disabled=\"true\"><field name=\"COLOR\">#ff6600</field><next><block type=\"timer_delay\" id=\"u;,Ea.Y+MA1t@OCQrIC7\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"A`,uT7lkKX0*Va=vy1zn\" disabled=\"true\"><field name=\"NUM\">0.1</field></shadow></value></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></statement><next><block type=\"controls_if\" id=\"t9k1[oN=HV))=g/s+hym\" disabled=\"true\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"Z4j9iR,4.l1oP1uQ091^\" disabled=\"true\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"fav2VB#`X]JkMMT@JT~c\" disabled=\"true\"><field name=\"VAR\" id=\"3VOtLjF!N2VEby9.|7ru\">i</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"J}E?BpE1o^TC`5|t%o%g\" disabled=\"true\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"image_show\" id=\"GzB_]A*3;9ZwLI@$FTUD\" disabled=\"true\"><field name=\"COMPONENT\">image1</field><next><block type=\"label_set_color\" id=\"grjFm/nKqDV4A@YO0Pcg\" disabled=\"true\"><field name=\"COMPONENT\">quantity</field><field name=\"COLOR\">#ff0000</field><next><block type=\"label_set_mode\" id=\"n|%{0~w%8uFZJK$!P_P=\" disabled=\"true\"><field name=\"COMPONENT\">label1</field><field name=\"MODE\">True</field><next><block type=\"speaker_tone\" id=\"EjW5TXr`a}-zDRMbFkpq\" disabled=\"true\"><value name=\"FREQ\"><shadow type=\"math_number\" id=\"o*dP;;S?.8|Pjf]fc8Vf\" disabled=\"true\"><field name=\"NUM\">1800</field></shadow></value><value name=\"TIMEOUT\"><shadow type=\"math_number\" id=\"TdwN8A2=bTJEX5/#*~p#\" disabled=\"true\"><field name=\"NUM\">100</field></shadow></value><next><block type=\"speaker_vol\" id=\"W-Gah7heM=ZjLtz$y+e+\" disabled=\"true\"><value name=\"VOLUME\"><shadow type=\"math_number\" id=\"iT50bC:V`(5zJEs@qfR2\" disabled=\"true\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"controls_repeat\" id=\"Jv3;_3X!i^Jdt[x{2jkN\" disabled=\"true\"><field name=\"TIMES\">2</field><statement name=\"DO\"><block type=\"rgb_set_all\" id=\"KkNyu@[#iHcMhF6rL(md\" disabled=\"true\"><field name=\"COLOR\">#ff0000</field><next><block type=\"timer_delay\" id=\"8__1Dl2N[7={n(H7{lun\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"`v76UQ,CuEb~%H7qxNOY\" disabled=\"true\"><field name=\"NUM\">0.1</field></shadow></value><next><block type=\"rgb_set_all\" id=\"qyZ[eRw3eSy,p}xXzX,=\" disabled=\"true\"><field name=\"COLOR\">#ff0000</field><next><block type=\"timer_delay\" id=\"~[+wKKH+X~YaS9,jv9!~\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"`JjRqSwMMIu#+96H#yaF\" disabled=\"true\"><field name=\"NUM\">0.1</field></shadow></value></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></statement></block></statement></block></statement></block><block type=\"basic_on_loop\" id=\"gy@E@#Gci_`DH$fRrGAH\" disabled=\"true\" x=\"-810\" y=\"-90\"><statement name=\"LOOP\"><block type=\"controls_if\" id=\"M`/2UssuC.]XslwVK=2|\" disabled=\"true\"><value name=\"IF0\"><block type=\"rfid_cardOn\" id=\"AsY{d]]$Z[V@`Cp._Ois\" disabled=\"true\"><field name=\"RFID\">rfid_2</field></block></value><statement name=\"DO0\"><block type=\"label_set_text\" id=\"TbJ$z(tlV}Vk9Z*NHBMC\" disabled=\"true\"><field name=\"COMPONENT\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\";B52G#xOyaFEfAtzC[,g\" disabled=\"true\"><field name=\"TEXT\">Product Quantity</field></shadow></value><next><block type=\"timer_delay\" id=\"zX_/*Lk!`2ZaJ4*QRtjc\" disabled=\"true\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"w^X]@yMGkf~I04|a/yga\" disabled=\"true\"><field name=\"NUM\">1</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"basic_on_loop\" id=\"cic{6a6ta]uIDL9G0)d/\" disabled=\"true\" x=\"-530\" y=\"90\"></block><block type=\"controls_for\" id=\"/J~ZK%xbxr|b^Qi0.4!l\" disabled=\"true\" x=\"50\" y=\"190\"><field name=\"VAR\" id=\"3VOtLjF!N2VEby9.|7ru\">i</field><value name=\"FROM\"><block type=\"math_number\" id=\"75,U:Uy$p1TXuw?SIF_m\" disabled=\"true\"><field name=\"NUM\">20</field></block></value><value name=\"TO\"><block type=\"math_number\" id=\"~S|WpJo}OK0/H3:L=$oN\" disabled=\"true\"><field name=\"NUM\">0</field></block></value><value name=\"BY\"><block type=\"math_number\" id=\"-t3_tu%N(KCmCD}]x~)7\" disabled=\"true\"><field name=\"NUM\">-1</field></block></value></block><block type=\"math_number\" id=\"X,!~|^]Nk?C.HBejT%ky\" disabled=\"true\" x=\"1090\" y=\"290\"><field name=\"NUM\">1</field></block><block type=\"controls_ifelse\" id=\"~}c=eHiCFdxE-Z_zXsk(\" disabled=\"true\" x=\"1430\" y=\"670\"></block><block type=\"label_set_mode\" id=\"#R20vjU?{u?{dHih:d)M\" disabled=\"true\" x=\"1010\" y=\"730\"><field name=\"COMPONENT\">label1</field><field name=\"MODE\">True</field></block>","Blockly.Remotes":[],"Blockly.RemotePlus":[{"id":"__title","blockId":"","createTime":1675415011019,"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_":[]}
Comments