Alycia YakArthur224539JBrandon
Published

Shop-a-Matic

Security and convenience in unmanned stores

BeginnerShowcase (no instructions)32
Shop-a-Matic

Things used in this project

Story

Read more

Schematics

Block Diagram

Circuit Diagram

Blockly Code

Blockly Code

Blockly Code

Code

EGT177_T2.m5f

Python
{"components":[{"id":"____screen","createTime":1675841887880,"name":"screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#222222","backgroundImage":"","type":"screen"},{"id":"____buttonA","createTime":1675841887881,"name":"ButtonA","buttonIndex":0,"x":35,"y":216,"width":64,"height":24,"text":"ButtonA","visibility":false,"type":"button"},{"id":"____buttonB","createTime":1675841887881,"name":"ButtonB","buttonIndex":1,"x":125,"y":216,"width":64,"height":24,"text":"ButtonB","visibility":false,"type":"button"},{"id":"____buttonC","createTime":1675841887881,"name":"ButtonC","buttonIndex":2,"x":215,"y":216,"width":64,"height":24,"text":"ButtonC","visibility":false,"type":"button"},{"id":"$0lxwXAR7CDN%JEi","createTime":1675841899857,"isCoreTwo":false,"isPaper":false,"name":"stocklabel","x":27,"y":119,"color":"#ffffff","text":"OUT OF STOCK","font":"lcd.FONT_DejaVu24","rotation":0,"type":"label","layer":35},{"id":"9OJwVODNGLjWpPBz","createTime":1675842090870,"isCoreTwo":false,"isPaper":false,"name":"plus","x":64,"y":214,"color":"#FFFFFF","text":"+","font":"lcd.FONT_DejaVu24","rotation":0,"type":"label","layer":36},{"id":"tv2nx$Ps-sENJOVZ","createTime":1675842090870,"isCoreTwo":false,"isPaper":false,"name":"minus","x":250,"y":214,"color":"#FFFFFF","text":"-","font":"lcd.FONT_DejaVu24","rotation":0,"type":"label","layer":37},{"id":"1^4wfTA^xV`tPd+5","createTime":1675842145741,"isCoreInk":false,"isPaper":false,"name":"first","x":0,"y":0,"width":320,"height":20,"color":"#FFFFFF","backgroundColor":"#0000FF","text":"PRESS MIDDLE BUTTON TO BEGIN","textOffset":"3","font":"lcd.FONT_Default","type":"title","layer":39},{"id":"N4Z$6%xMgKdY2sSy","createTime":1675842201088,"isCoreTwo":false,"isPaper":false,"name":"nameorquantity","x":22,"y":74,"color":"#FFFFFF","text":"M5STACK","font":"lcd.FONT_DejaVu40","rotation":0,"type":"label","layer":40},{"id":"e3$_bece9zYrB=aS","createTime":1675842201088,"isCoreTwo":false,"isPaper":false,"name":"pricelabel","x":27,"y":147,"color":"#FFFFFF","text":"$50","font":"lcd.FONT_DejaVu40","rotation":0,"type":"label","layer":42},{"id":"R2VyCzg*kPZWQh@T","createTime":1675843622073,"isCoreTwo":false,"isPaper":false,"name":"timerlabel","x":22,"y":53,"color":"#FFFFFF","text":"TIMER","font":"lcd.FONT_DejaVu18","rotation":0,"type":"label","layer":43}],"type":"fire","versions":"Beta","units":[{"id":"Xyw%Kl6BeB+BW^Ao","createTime":1676022057383,"type":"rgb","name":"rgb_0","port":"B","default":["A","B","E","Custom"],"user_port":["21","22"],"icon":"rgb.png"},{"id":"gESdRUTHDDWbn^$e","createTime":1676022057383,"type":"pahub","name":"pahub_1","port":"A","default":["A","E","Custom"],"user_port":["21","22"],"icon":"pa_hub.png"},{"id":"_l2jqMeSn#6!=Xhv","createTime":1676022057383,"type":"rfid","name":"rfid_1","port":"PAHUB","default":["A","E","PAHUB","Custom"],"pb_port":[0,1,2,3,4,5],"new_pb_port":"5","user_port":["21","22"],"icon":"rfid.png"},{"id":"$IrW1YLvV%Aum&j@","createTime":1676022057383,"type":"pbhub","name":"pbhub_0","port":"PAHUB","default":["A","E","PAHUB","Custom"],"pb_port":[0,1,2,3,4,5],"new_pb_port":"2","user_port":["21","22"],"icon":"pb_hub.png"},{"id":"1lLXi`uwl5*&AIw^","createTime":1676022057383,"stickNone":"stick","type":"tof","name":"tof_0","port":"PAHUB","default":["A","E","PAHUB","Custom"],"pb_port":[0,1,2,3,4,5],"new_pb_port":"4","user_port":["21","22"],"icon":"tof.png"}],"hats":[],"blockly":"<variables><variable id=\"IqlFRy`h6fSXg[l?s`ve\">stock</variable><variable id=\"B[/fP}W1k.aI]G9|V|]Q\">light</variable><variable id=\"yRXgbbb!KI.O-+.@srus\">begin</variable><variable id=\"SH!QzKP(y0y;-)$VZT$:\">ordertimer</variable><variable id=\"u+|!O({klB`dPM(ECAK^\">paymenttimer</variable><variable id=\"QjefD_Nn}pw]}=gLL2_h\">quantity</variable><variable id=\"`ZfUqIiSEjh{NMci#Fyg\">name</variable><variable id=\"t+9c[KSWp=kyYxZhJakt\">price</variable><variable id=\"p9nD(PRu;O*}ejnoVRv=\">total</variable><variable id=\"Agu6(8}{/!y%#K^5BU!(\">rfid</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"-3350\" y=\"-270\"><next><block type=\"variables_set\" id=\".8pt-pfW|LvEI}MA.C|z\"><field name=\"VAR\" id=\"IqlFRy`h6fSXg[l?s`ve\">stock</field><value name=\"VALUE\"><block type=\"math_number\" id=\"xYPnY,R%1}NR%zt!U{?Y\"><field name=\"NUM\">5</field></block></value><next><block type=\"variables_set\" id=\"I3plK4Q%$}7;Ts-,rm=T\"><field name=\"VAR\" id=\"yRXgbbb!KI.O-+.@srus\">begin</field><value name=\"VALUE\"><block type=\"math_number\" id=\";^qO1IW%o7_??37$Samx\"><field name=\"NUM\">0</field></block></value><next><block type=\"variables_set\" id=\"VfXIQ{G{L@[]jmwS|;#Y\"><field name=\"VAR\" id=\"QjefD_Nn}pw]}=gLL2_h\">quantity</field><value name=\"VALUE\"><block type=\"math_number\" id=\"AkmI}`652ZhBM/ghKeOI\"><field name=\"NUM\">0</field></block></value><next><block type=\"variables_set\" id=\"YP$/r[6[H],P1$0o=FaX\"><field name=\"VAR\" id=\"`ZfUqIiSEjh{NMci#Fyg\">name</field><value name=\"VALUE\"><block type=\"text\" id=\"H|a6DO#d!(A~c1qRsmO}\"><field name=\"TEXT\">SENSORS</field></block></value><next><block type=\"variables_set\" id=\":~!EOsbzT+|.tk5Lg$Yi\"><field name=\"VAR\" id=\"t+9c[KSWp=kyYxZhJakt\">price</field><value name=\"VALUE\"><block type=\"math_number\" id=\"#^s.QB9(--df~JqjNYi!\"><field name=\"NUM\">10</field></block></value><next><block type=\"variables_set\" id=\"k?qP^KQ??ydelTbu@Z_7\"><field name=\"VAR\" id=\"p9nD(PRu;O*}ejnoVRv=\">total</field><value name=\"VALUE\"><block type=\"math_number\" id=\"$G+Y}y+z+$8KjDC%{s9/\"><field name=\"NUM\">0</field></block></value><next><block type=\"procedures_callnoreturn\" id=\"vRkN)gL{*+R{l(@IC0Dx\"><mutation name=\"breach\"></mutation><next><block type=\"procedures_callnoreturn\" id=\"-FG+^^Q.ztDHn-G,r/G!\"><mutation name=\"main\"></mutation></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block><block type=\"button_callback\" id=\"8k78#eQa.eL2l`4wk%K+\" x=\"-3030\" y=\"-270\"><field name=\"BUTTON\">B</field><field name=\"EVENT\">wasPressed</field><statement name=\"FUNC\"><block type=\"controls_if\" id=\"~B7c(If|V)oh/DNZ8,w|\"><mutation else=\"1\"></mutation><value name=\"IF0\"><block type=\"logic_compare\" id=\"m]Goj[aD;a+zis1O::a)\"><field name=\"OP\">NEQ</field><value name=\"A\"><block type=\"variables_get\" id=\"t|l:3+cG.i*V.+y-,eTs\"><field name=\"VAR\" id=\"IqlFRy`h6fSXg[l?s`ve\">stock</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"9:C}S@L.-`LoC`sm??g9\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"math_change\" id=\"s`5)mGb;jVm]mCoZl?Ab\"><field name=\"VAR\" id=\"yRXgbbb!KI.O-+.@srus\">begin</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"FG2x:[piMr[,eNjv,6-r\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"controls_if\" id=\"@j/k34K8k^=KJkTl70|j\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"XM/++N^q3Izz[@6XG+Q%\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"|?0e8r@i!zIRYEUE8XM_\"><field name=\"VAR\" id=\"yRXgbbb!KI.O-+.@srus\">begin</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"N1^;EeTC.Y5iFpauJ@Fp\"><field name=\"NUM\">1</field></block></value></block></value><statement name=\"DO0\"><block type=\"procedures_callnoreturn\" id=\"L:f}kxJ/1AH.]OgXcH[L\"><mutation name=\"order\"></mutation><next><block type=\"controls_ifelse\" id=\"6-9$Ra9ZRd:]8_g9E6X;\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"gYP^:7jF05|;Q:_NWNql\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"]h}@sR;_szVyTKVRTMwb\"><field name=\"VAR\" id=\"yRXgbbb!KI.O-+.@srus\">begin</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"oUJDb+[YysA{!jh-iVT5\"><field name=\"NUM\">2</field></block></value></block></value><statement name=\"DO0\"><block type=\"procedures_callnoreturn\" id=\"]9d+nH{GWrxW#L9)eq]i\"><mutation name=\"payment\"></mutation><next><block type=\"variables_set\" id=\"D`+#@Sz8Jp4qf$ID~2[K\"><field name=\"VAR\" id=\"yRXgbbb!KI.O-+.@srus\">begin</field><value name=\"VALUE\"><block type=\"math_number\" id=\"4YZ19)vhbTD`Ibiv.UU}\"><field name=\"NUM\">0</field></block></value><next><block type=\"variables_set\" id=\"FL4Ca[A.q,HyvhG5)W|6\"><field name=\"VAR\" id=\"QjefD_Nn}pw]}=gLL2_h\">quantity</field><value name=\"VALUE\"><block type=\"math_number\" id=\"h}dDv8)XUFUG`@_?MueL\"><field name=\"NUM\">0</field></block></value><next><block type=\"controls_if\" id=\";BlBwd[b?kT*NKQA*JWK\"><mutation else=\"1\"></mutation><value name=\"IF0\"><block type=\"logic_compare\" id=\"~Aqy5f{/eTEGfa:h5BSz\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"variables_get\" id=\"}9[Cl1|X]r]0$FFfoHSd\"><field name=\"VAR\" id=\"IqlFRy`h6fSXg[l?s`ve\">stock</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"I{WZ}Xorc,9Qrb}vd0+i\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"procedures_callnoreturn\" id=\"%CIQ@Ub%oqfOuAR#Ml$E\"><mutation name=\"main\"></mutation></block></statement><statement name=\"ELSE\"><block type=\"procedures_callnoreturn\" id=\"TAaRMD%vc,v6aq$ssZ7M\"><mutation name=\"out\"></mutation></block></statement></block></next></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"variables_set\" id=\"H45+3K|z(YcYtuW.Fzl-\"><field name=\"VAR\" id=\"yRXgbbb!KI.O-+.@srus\">begin</field><value name=\"VALUE\"><block type=\"math_number\" id=\"7tss:JF=tA$-M,:nxGwc\"><field name=\"NUM\">0</field></block></value><next><block type=\"variables_set\" id=\"8cD7##AkEj};5m2~cH*}\"><field name=\"VAR\" id=\"QjefD_Nn}pw]}=gLL2_h\">quantity</field><value name=\"VALUE\"><block type=\"math_number\" id=\"E-!X17mh.)hQ8xy_e:o2\"><field name=\"NUM\">0</field></block></value><next><block type=\"controls_if\" id=\"5{W15unloE4Jxy?#g,={\"><mutation else=\"1\"></mutation><value name=\"IF0\"><block type=\"logic_compare\" id=\"uJ!W2eZd_eH2tMa)Z[-P\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"variables_get\" id=\"5c|g(k%SifZONBQvJ;5z\"><field name=\"VAR\" id=\"IqlFRy`h6fSXg[l?s`ve\">stock</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"3?O_Lf_l!RR=:P;*yWB^\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"procedures_callnoreturn\" id=\"m-0O_.u_pd!tiCe28olG\"><mutation name=\"main\"></mutation></block></statement><statement name=\"ELSE\"><block type=\"procedures_callnoreturn\" id=\"H#x~,2/Gu0~R:gbx8)e*\"><mutation name=\"out\"></mutation></block></statement></block></next></block></next></block></statement></block></next></block></statement></block></next></block></statement><statement name=\"ELSE\"><block type=\"procedures_callnoreturn\" id=\"I@Ht_x$5zN2hroFTKdk]\"><mutation name=\"out\"></mutation></block></statement><next><block type=\"procedures_callnoreturn\" id=\"m|.D1[gdMIAN`7aOH?Js\"><mutation name=\"breach\"></mutation></block></next></block></statement></block><block type=\"procedures_defnoreturn\" id=\"aGA)okESV1i6oblf)|m5\" x=\"-2570\" y=\"-270\"><field name=\"NAME\">main</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"rgb_unit_set_color_from\" id=\")AjoT:_qlaS`x+_(YZVn\"><field name=\"VARNAME\">rgb_0</field><field name=\"COLOR\">#ffccff</field><value name=\"FROM\"><shadow type=\"math_number\" id=\"uyDd]t0G/p=kxV;=F[$^\"><field name=\"NUM\">1</field></shadow></value><value name=\"TO\"><shadow type=\"math_number\" id=\"}ytj{aF?iD{LWPS}Kbw{\"><field name=\"NUM\">3</field></shadow></value><next><block type=\"title_set_text\" id=\"A}z}-@rz-itCC,_^*,yf\"><field name=\"COMPONENT\">first</field><value name=\"TEXT\"><shadow type=\"text\" id=\"+?SjLCi8(3.KW`upw}S;\"><field name=\"TEXT\">PRESS MIDDLE BUTTON TO ORDER</field></shadow></value><next><block type=\"label_set_mode\" id=\"^`gGJ6YvFO*6q3wzCwLg\"><field name=\"COMPONENT\">stocklabel</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"bX@V@^{/l$1P.O`tl3bR\"><field name=\"COMPONENT\">plus</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\".T/?TNEXvlaxJA8j2PeL\"><field name=\"COMPONENT\">minus</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"DqN8et|@JOs%{Aql_}zs\"><field name=\"COMPONENT\">nameorquantity</field><field name=\"MODE\">False</field><next><block type=\"label_set_mode\" id=\"Eb|,fIU6iny~9-5oNSll\"><field name=\"COMPONENT\">pricelabel</field><field name=\"MODE\">False</field><next><block type=\"label_set_mode\" id=\"_KgMIuen7Lc}P}i*Qpw}\"><field name=\"COMPONENT\">timerlabel</field><field name=\"MODE\">False</field><next><block type=\"label_set_text\" id=\"BtTYE3^KQwoHCxuQ=4e3\"><field name=\"COMPONENT\">nameorquantity</field><value name=\"TEXT\"><shadow type=\"text\" id=\"~~O(}_|.lpmsdvWWm-S%\"><field name=\"TEXT\">M5STACK</field></shadow><block type=\"variables_get\" id=\"4)-K-D=7%8Cl6EG~45f5\"><field name=\"VAR\" id=\"`ZfUqIiSEjh{NMci#Fyg\">name</field></block></value><next><block type=\"label_set_text\" id=\"WqEYL#I$lHo[kYVDaC?w\"><field name=\"COMPONENT\">pricelabel</field><value name=\"TEXT\"><shadow type=\"text\" id=\"snczHyj!mcT.%=U%n7Bo\"><field name=\"TEXT\">$50.00</field></shadow><block type=\"text_add\" id=\"KQx]c`]Dlc[G/:gWA--V\"><value name=\"arg0\"><shadow type=\"text\" id=\"SnX/wPHpG^H[JJJ%(p@M\"><field name=\"TEXT\">$</field></shadow></value><value name=\"arg1\"><block type=\"variables_get\" id=\"q.(#L`N^rF]{r/Q^.tG/\"><field name=\"VAR\" id=\"t+9c[KSWp=kyYxZhJakt\">price</field></block></value></block></value><next><block type=\"label_set_text\" id=\"eiT?+t`42SyDl+3nZ#J9\"><field name=\"COMPONENT\">timerlabel</field><value name=\"TEXT\"><shadow type=\"text\" id=\"61RjY1g[U~!w(QpEc?qn\"><field name=\"TEXT\">$50.00</field></shadow><block type=\"text\" id=\"DOSV)?;#nF=..l.|`Z`I\"><field name=\"TEXT\">ITEM</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type=\"procedures_defnoreturn\" id=\"#ZvE0.OFwlgLaafI]1H*\" x=\"-2050\" y=\"-270\"><field name=\"NAME\">breach</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"variables_set\" id=\",p,00Uxiu85YV?8HyBUX\"><field name=\"VAR\" id=\"B[/fP}W1k.aI]G9|V|]Q\">light</field><value name=\"VALUE\"><block type=\"pbhub_analogRead\" id=\"Dz#3H%]V8gvaT*1~.Mz$\"><field name=\"VARNAME\">pbhub_0</field><value name=\"num\"><shadow type=\"math_number\" id=\"1V/!cB`y]Ls(P.y1Wo,-\"><field name=\"NUM\">3</field></shadow></value></block></value><next><block type=\"controls_if\" id=\"D[sUZVz$_j75Q|.H9C[2\"><value name=\"IF0\"><block type=\"logic_operation\" id=\"Bt4TYJnM?j)A(cz|h5Xg\"><field name=\"OP\">AND</field><value name=\"A\"><block type=\"logic_compare\" id=\"m=`d5hHJRc.^l0wj1u.)\"><field name=\"OP\">LTE</field><value name=\"A\"><block type=\"unit_tof_state\" id=\"vOrgcO9}V~-,:thj]b+j\"><field name=\"TOF\">tof_0</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"g-ozhbl;hd0%nD9Qh|:E\"><field name=\"NUM\">50</field></block></value></block></value><value name=\"B\"><block type=\"logic_compare\" id=\"-`pr72(c,F9Pu6CZXI;5\"><field name=\"OP\">LTE</field><value name=\"A\"><block type=\"pbhub_analogRead\" id=\"Y]sVE]%0HK#b7,[0Exxh\"><field name=\"VARNAME\">pbhub_0</field><value name=\"num\"><shadow type=\"math_number\" id=\"/1B0WR4[-NurCUUGw]w{\"><field name=\"NUM\">3</field></shadow></value></block></value><value name=\"B\"><block type=\"math_number\" id=\"0,G({RfPA^Hn;hFf7N.d\"><field name=\"NUM\">500</field></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"basic_on_loop\" id=\"V0wGdogIo=d`(%WS$EOD\"><statement name=\"LOOP\"><block type=\"rgb_unit_set_color_from\" id=\"~u|ERsZ.r|VB6ttZ/aBw\"><field name=\"VARNAME\">rgb_0</field><field name=\"COLOR\">#ff0000</field><value name=\"FROM\"><shadow type=\"math_number\" id=\"*={qj0AwNOg+LBv*Oz2I\"><field name=\"NUM\">1</field></shadow></value><value name=\"TO\"><shadow type=\"math_number\" id=\"KXt:jduB!wyA%DmZ^Ww1\"><field name=\"NUM\">3</field></shadow></value><next><block type=\"screen_set_bgcolor\" id=\"E,@[@$NXGcSYyowa#eg`\"><field name=\"COLOR\">#ff0000</field><next><block type=\"label_set_color\" id=\"Cm#LpB6NQIgCX))_TNuM\"><field name=\"COMPONENT\">stocklabel</field><field name=\"COLOR\">#000000</field><next><block type=\"label_set_text\" id=\"HKOtxQx}2hT[_(1.p(,h\"><field name=\"COMPONENT\">stocklabel</field><value name=\"TEXT\"><shadow type=\"text\" id=\"|;+Tn/3oCgSK[1*7,*b^\"><field name=\"TEXT\">SECURITY BREACHED</field></shadow></value><next><block type=\"speaker_sing\" id=\"$3,{yV]_Cv.Pf.mO)sF=\"><field name=\"TONE\">220</field><field name=\"BEAT\">1/4</field></block></next></block></next></block></next></block></next></block></statement></block></statement></block></next></block></statement></block><block type=\"procedures_defnoreturn\" id=\";kb]4Pl!cO~!X023G]6]\" x=\"-630\" y=\"-230\"><field name=\"NAME\">order</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"rgb_unit_set_color_from\" id=\"K38iWQ@uQ#4EZJ7TJa=!\"><field name=\"VARNAME\">rgb_0</field><field name=\"COLOR\">#ff6600</field><value name=\"FROM\"><shadow type=\"math_number\" id=\"i?!V00e-9-7w}*W1@5Ik\"><field name=\"NUM\">1</field></shadow></value><value name=\"TO\"><shadow type=\"math_number\" id=\"rnV6j7u*fEdXi88QiJ0,\"><field name=\"NUM\">3</field></shadow></value><next><block type=\"controls_for\" id=\"[?A?=.IoYwcVd:9[Hy5w\"><field name=\"VAR\" id=\"SH!QzKP(y0y;-)$VZT$:\">ordertimer</field><value name=\"FROM\"><block type=\"math_number\" id=\"HxrH)lQLudPJ/}ACMo=j\"><field name=\"NUM\">30</field></block></value><value name=\"TO\"><block type=\"math_number\" id=\"J-7xw@}gke}(`{YG=Bdq\"><field name=\"NUM\">0</field></block></value><value name=\"BY\"><block type=\"math_number\" id=\"btOvzZh|FrK##%H=!x3B\"><field name=\"NUM\">1</field></block></value><statement name=\"DO\"><block type=\"procedures_callnoreturn\" id=\"!]j#$[aEOCOHV,,^Puh)\"><mutation name=\"breach\"></mutation><next><block type=\"math_change\" id=\"(urX^iC;M2m_fnl!9^Jf\"><field name=\"VAR\" id=\"SH!QzKP(y0y;-)$VZT$:\">ordertimer</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"]c0O:_U[jr#]#xjpJ_IE\"><field name=\"NUM\">-1</field></shadow></value><next><block type=\"title_set_text\" id=\"i1MJrUOi(vxL0PTN+KSu\"><field name=\"COMPONENT\">first</field><value name=\"TEXT\"><shadow type=\"text\" id=\"dUwZHRoT:G9Xn[6O^@[S\"><field name=\"TEXT\">PRESS MIDDLE BUTTON TO CONFIRM/CANCEL</field></shadow></value><next><block type=\"label_set_mode\" id=\"?{P(UZ7ar_OE-pIH=A`S\"><field name=\"COMPONENT\">plus</field><field name=\"MODE\">False</field><next><block type=\"label_set_mode\" id=\"Hwud#Z@m.Gx~M^^J#.|a\"><field name=\"COMPONENT\">minus</field><field name=\"MODE\">False</field><next><block type=\"label_set_mode\" id=\"Ay3G$?U`Yq^s#G4o|U5P\"><field name=\"COMPONENT\">pricelabel</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"aF8g?6;kh7[HWE_PE^KH\"><field name=\"COMPONENT\">nameorquantity</field><field name=\"MODE\">False</field><next><block type=\"label_set_text\" id=\"|#A)g%*@6WTOGN0H~:Bp\"><field name=\"COMPONENT\">timerlabel</field><value name=\"TEXT\"><shadow type=\"text\" id=\"uUm0s4pmw~b}`W$x!4pR\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"text_add\" id=\"G@vNKGl$/FGfmP|E*qo)\"><value name=\"arg0\"><shadow type=\"text\" id=\"]!(E;6+.1E;_#iYOY$:I\"><field name=\"TEXT\">ORDER EXPIRES IN </field></shadow></value><value name=\"arg1\"><block type=\"variables_get\" id=\"v|9D8L?C-]wbkHbkyF;i\"><field name=\"VAR\" id=\"SH!QzKP(y0y;-)$VZT$:\">ordertimer</field></block></value></block></value><next><block type=\"label_set_text\" id=\"/hl.Y#Hvx,1bT[}909Z*\"><field name=\"COMPONENT\">nameorquantity</field><value name=\"TEXT\"><shadow type=\"text\" id=\"?@Y*;!gumuV!f}BpyFzY\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"hQkZCd8tR#xTJCETawdn\"><field name=\"VAR\" id=\"QjefD_Nn}pw]}=gLL2_h\">quantity</field></block></value><next><block type=\"controls_if\" id=\"(x.xg*b3b(tP;,v44~R}\"><mutation elseif=\"2\"></mutation><value name=\"IF0\"><block type=\"button_ispressed\" id=\"Y+8h.~XHt2(aKgUJ.#zt\"><field name=\"BUTTON\">A</field><field name=\"EVENT\">isPressed</field></block></value><statement name=\"DO0\"><block type=\"math_change\" id=\"JRG`Avf`wh2ijjZ^|=aE\"><field name=\"VAR\" id=\"QjefD_Nn}pw]}=gLL2_h\">quantity</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"Yy:Z[h(aUf$B6gCDSd!t\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"controls_if\" id=\"cB;Xo:s%}/I=e3NVEZA:\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"T5vHf0_V^58)[,A~,6dR\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"variables_get\" id=\"HUhQ^W:Aw~Gm7x`F_H8.\"><field name=\"VAR\" id=\"QjefD_Nn}pw]}=gLL2_h\">quantity</field></block></value><value name=\"B\"><block type=\"variables_get\" id=\"C~kD}SEB4,*cY3b@u);u\"><field name=\"VAR\" id=\"IqlFRy`h6fSXg[l?s`ve\">stock</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"28b1Nz*2`0F$sAVWy$Js\"><field name=\"VAR\" id=\"QjefD_Nn}pw]}=gLL2_h\">quantity</field><value name=\"VALUE\"><block type=\"variables_get\" id=\"mZCCO#KuC*N_n(.*aCRF\"><field name=\"VAR\" id=\"IqlFRy`h6fSXg[l?s`ve\">stock</field></block></value></block></statement><next><block type=\"label_set_text\" id=\"-UgN3_*YzGICfg*}T{e~\"><field name=\"COMPONENT\">nameorquantity</field><value name=\"TEXT\"><shadow type=\"text\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"!jRv6SSEQgH|dFGrf]y$\"><field name=\"VAR\" id=\"QjefD_Nn}pw]}=gLL2_h\">quantity</field></block></value></block></next></block></next></block></statement><value name=\"IF1\"><block type=\"button_ispressed\" id=\"Wf:2c#ME7?5B0mnSgua/\"><field name=\"BUTTON\">C</field><field name=\"EVENT\">isPressed</field></block></value><statement name=\"DO1\"><block type=\"math_change\" id=\"11(Esmh;g8]xpR#m#,!s\"><field name=\"VAR\" id=\"QjefD_Nn}pw]}=gLL2_h\">quantity</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"$(g`B``]=%~L|^7S8:H4\"><field name=\"NUM\">-1</field></shadow></value><next><block type=\"label_set_text\" id=\"Sv5HJ,q#LAP_8t+.KvG5\"><field name=\"COMPONENT\">nameorquantity</field><value name=\"TEXT\"><shadow type=\"text\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"#e.;oOHg.f=`z[:%h,R5\"><field name=\"VAR\" id=\"QjefD_Nn}pw]}=gLL2_h\">quantity</field></block></value><next><block type=\"controls_if\" id=\"P.]t-*yO#)?}%;IGGzCG\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"GL70:8s+*Fp,$L3^#B-m\"><field name=\"OP\">LT</field><value name=\"A\"><block type=\"variables_get\" id=\"x]TYGb52_2C/{Ty[aDl@\"><field name=\"VAR\" id=\"QjefD_Nn}pw]}=gLL2_h\">quantity</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"f~hH_|nCek[MT0FF@|:X\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"@e)A39t]EIWwUc8vTeKW\"><field name=\"VAR\" id=\"QjefD_Nn}pw]}=gLL2_h\">quantity</field><value name=\"VALUE\"><block type=\"math_number\" id=\"Q02_4#B_QjEQk,L}0LNr\"><field name=\"NUM\">0</field></block></value></block></statement></block></next></block></next></block></statement><value name=\"IF2\"><block type=\"button_ispressed\" id=\"p/5$,cQTX6aNQZy{$@8q\"><field name=\"BUTTON\">B</field><field name=\"EVENT\">isPressed</field></block></value><statement name=\"DO2\"><block type=\"controls_if\" id=\"iUF|+AO!rsRID[M9%s!^\"><mutation else=\"1\"></mutation><value name=\"IF0\"><block type=\"logic_compare\" id=\"]):rB0[t(,n.--c7^%=#\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"{pdE+D0xHqZ$4Aj%ss_u\"><field name=\"VAR\" id=\"QjefD_Nn}pw]}=gLL2_h\">quantity</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"?jz$KtU7dg6wF%kN#S{G\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"controls_flow_statements\" id=\"kNM2|I61SJJ2NbCW^/-S\"><field name=\"FLOW\">BREAK</field></block></statement><statement name=\"ELSE\"><block type=\"math_change\" id=\"Q%#w?Dn[:G1|!8[UGr4s\"><field name=\"VAR\" id=\"yRXgbbb!KI.O-+.@srus\">begin</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"r^msb!KDel/B~cLq+ttE\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"variables_set\" id=\"}K/*QRjKQFR%dB1bmI~7\"><field name=\"VAR\" id=\"p9nD(PRu;O*}ejnoVRv=\">total</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"cbd3bUqrBR!yIDKw^-!D\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><block type=\"variables_get\" id=\"mY|3:-;)5((89IWH8qOC\"><field name=\"VAR\" id=\"QjefD_Nn}pw]}=gLL2_h\">quantity</field></block></value><value name=\"B\"><block type=\"variables_get\" id=\"tRElbC:35`P}]FeHwsXZ\"><field name=\"VAR\" id=\"t+9c[KSWp=kyYxZhJakt\">price</field></block></value></block></value><next><block type=\"controls_flow_statements\" id=\"l/3Klx7Q]gt4!sa%dQ~F\"><field name=\"FLOW\">BREAK</field></block></next></block></next></block></statement></block></statement><next><block type=\"timer_delay_ms\" id=\"^ja^]Jx3vDT}RQ;c}?+^\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"6Hsx#Vj2V*s.^QKY?:|k\"><field name=\"NUM\">1</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></statement></block><block type=\"procedures_defnoreturn\" id=\"9fccg#D:LPL.`W2`*}},\" x=\"-2470\" y=\"250\"><field name=\"NAME\">restock</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"title_set_text\" id=\"4Jfpc@6.aY:|Z4u%X_*G\"><field name=\"COMPONENT\">first</field><value name=\"TEXT\"><shadow type=\"text\" id=\"~kjXILBD`qn,$ser.5.v\"><field name=\"TEXT\">PRESS MIDDLE BUTTON TO RESTOCK</field></shadow></value><next><block type=\"rgb_unit_set_color_from\" id=\"9CX+pF)3YeqIX`euG:me\"><field name=\"VARNAME\">rgb_0</field><field name=\"COLOR\">#ffccff</field><value name=\"FROM\"><shadow type=\"math_number\" id=\"gw7XH%uR:8aye/LmvIgj\"><field name=\"NUM\">1</field></shadow></value><value name=\"TO\"><shadow type=\"math_number\" id=\"gf3n5ojD,3`XsBN=k+C}\"><field name=\"NUM\">3</field></shadow></value><next><block type=\"label_set_text\" id=\"CXBep5LExJdkYLA`L%A_\"><field name=\"COMPONENT\">nameorquantity</field><value name=\"TEXT\"><shadow type=\"text\" id=\".-k^-};i$oH;g%(;g9|i\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"bF0m6W)qt.Goc64+lS{O\"><field name=\"VAR\" id=\"QjefD_Nn}pw]}=gLL2_h\">quantity</field></block></value><next><block type=\"label_set_mode\" id=\"DiW+H~t*-M{19ly7?bdA\"><field name=\"COMPONENT\">stocklabel</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"%?L/Zyh+h/i(}Vb^R+?H\"><field name=\"COMPONENT\">nameorquantity</field><field name=\"MODE\">False</field><next><block type=\"controls_whileUntil\" id=\"vLzmliaEajPrrj}@C6Vd\"><field name=\"MODE\">WHILE</field><value name=\"BOOL\"><block type=\"logic_compare\" id=\"K/L4L!qU-#V2$h+ngTu@\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"1bugeR/BC$s5n=^-bfKD\"><field name=\"VAR\" id=\"IqlFRy`h6fSXg[l?s`ve\">stock</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"^Qec?I2{fu|*0?7foCTp\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO\"><block type=\"controls_if\" id=\"#fcQl5%MCN_5NNWHcK6.\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"V$ecn!7)]c$zt~[V2)!U\"><field name=\"OP\">LTE</field><value name=\"A\"><block type=\"unit_tof_state\" id=\".GvqF_2zl#PE_rh.iYvS\"><field name=\"TOF\">tof_0</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"Dn)8uKzk6bn!bR})cis7\"><field name=\"NUM\">50</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"`F@--3avo5+UX:L4PlJI\"><field name=\"VAR\" id=\"QjefD_Nn}pw]}=gLL2_h\">quantity</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"(aGx9l!aeQuFp(=PWL0`\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"variables_get\" id=\"j=R(GQvxDMz/.N(1laF-\"><field name=\"VAR\" id=\"QjefD_Nn}pw]}=gLL2_h\">quantity</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"dOn+)u-awIz_b9.|!l:v\"><field name=\"NUM\">1</field></block></value></block></value><next><block type=\"label_set_text\" id=\"-Ovm@r?EOs5y-AVz~Lg)\"><field name=\"COMPONENT\">nameorquantity</field><value name=\"TEXT\"><shadow type=\"text\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"W~{r4St$bK!xuxLYPse8\"><field name=\"VAR\" id=\"QjefD_Nn}pw]}=gLL2_h\">quantity</field></block></value><next><block type=\"timer_delay_ms\" id=\"JA~zk-wi7C,8DVw|]z8G\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"~ko7ag4o#Bgw(+P$mtL8\"><field name=\"NUM\">1</field></shadow></value></block></next></block></next></block></statement><next><block type=\"controls_if\" id=\"Tc*LOIN#}Z81PmM`wvss\"><value name=\"IF0\"><block type=\"button_ispressed\" id=\"FOr%n%;^6q#@2*d-w^H`\"><field name=\"BUTTON\">B</field><field name=\"EVENT\">isPressed</field></block></value><statement name=\"DO0\"><block type=\"controls_if\" id=\"(`[DO;m7`,$9jF1gq/rl\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"Ie+/{m^uLf8.dA?F}inz\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"variables_get\" id=\"FJEp^Z0,uj|#Z=*[*p#v\"><field name=\"VAR\" id=\"QjefD_Nn}pw]}=gLL2_h\">quantity</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"OcYMbCnH2ezx;-*~,gs0\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"controls_flow_statements\" id=\"9+_lzr^Vb`]9|Niule|_\"><field name=\"FLOW\">BREAK</field></block></statement></block></statement></block></next></block></statement><next><block type=\"variables_set\" id=\"pe~x}CbG^hL+VDiq1Peh\"><field name=\"VAR\" id=\"IqlFRy`h6fSXg[l?s`ve\">stock</field><value name=\"VALUE\"><block type=\"variables_get\" id=\"zt5CNsu:WFLxe)l0LjRw\"><field name=\"VAR\" id=\"QjefD_Nn}pw]}=gLL2_h\">quantity</field></block></value><next><block type=\"variables_set\" id=\"--NGCkGZ}1e,ZnN7Jyj]\"><field name=\"VAR\" id=\"QjefD_Nn}pw]}=gLL2_h\">quantity</field><value name=\"VALUE\"><block type=\"math_number\" id=\"g2ku0WG-B[RQt(g_gvOk\"><field name=\"NUM\">0</field></block></value><next><block type=\"procedures_callnoreturn\" id=\"Rv{1*Shokxto*ZwL74uH\"><mutation name=\"main\"></mutation></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type=\"procedures_defnoreturn\" id=\"/J|13=L,!-o4o:K16J4L\" x=\"-1910\" y=\"250\"><field name=\"NAME\">payment</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"rgb_unit_set_color_from\" id=\")jE-;D3lj=NeQkm~_d1t\"><field name=\"VARNAME\">rgb_0</field><field name=\"COLOR\">#ffff00</field><value name=\"FROM\"><shadow type=\"math_number\" id=\"vav?O;1e@;{B,Th`yZ6$\"><field name=\"NUM\">1</field></shadow></value><value name=\"TO\"><shadow type=\"math_number\" id=\"GZ[x[z!MQ]V`kIOrAdN3\"><field name=\"NUM\">3</field></shadow></value><next><block type=\"controls_for\" id=\".mhpnTQkr[g~X6%8{]sX\"><field name=\"VAR\" id=\"u+|!O({klB`dPM(ECAK^\">paymenttimer</field><value name=\"FROM\"><block type=\"math_number\" id=\"0*=]CBd/0jba[:j*pP[0\"><field name=\"NUM\">30</field></block></value><value name=\"TO\"><block type=\"math_number\" id=\"|%+tAlJwy+$P9hqINVI.\"><field name=\"NUM\">0</field></block></value><value name=\"BY\"><block type=\"math_number\" id=\":tR1WJydofDJnm5?/193\"><field name=\"NUM\">1</field></block></value><statement name=\"DO\"><block type=\"procedures_callnoreturn\" id=\".nyBu~C!(:?^Qv5mv2u4\"><mutation name=\"breach\"></mutation><next><block type=\"math_change\" id=\"]3W]Tt@/_o=Nke_SRe!E\"><field name=\"VAR\" id=\"u+|!O({klB`dPM(ECAK^\">paymenttimer</field><value name=\"DELTA\"><shadow type=\"math_number\" id=\"1xjs~}N,1nQg9G}qnW8#\"><field name=\"NUM\">-1</field></shadow></value><next><block type=\"title_set_text\" id=\"qf/6s8,47}Tu)jl]S(I$\"><field name=\"COMPONENT\">first</field><value name=\"TEXT\"><shadow type=\"text\" id=\"sR8pI4=.yg0{wdc2QS=H\"><field name=\"TEXT\">SCAN CARD TO PAY</field></shadow></value><next><block type=\"label_set_mode\" id=\"b[{*daoj]%AE;R8wpzN_\"><field name=\"COMPONENT\">plus</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"woGZiF[kE}dpe];,MFi{\"><field name=\"COMPONENT\">minus</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"^{!(t(*qbKs`NacTT~=O\"><field name=\"COMPONENT\">pricelabel</field><field name=\"MODE\">False</field><next><block type=\"label_set_mode\" id=\"%g!25/5s2XsDLI-4#TjA\"><field name=\"COMPONENT\">nameorquantity</field><field name=\"MODE\">False</field><next><block type=\"label_set_text\" id=\"_NITYvU?56~{Z_^rWd|l\"><field name=\"COMPONENT\">timerlabel</field><value name=\"TEXT\"><shadow type=\"text\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"text_add\" id=\"{,sM={:3zZRFq-Irb%cu\"><value name=\"arg0\"><shadow type=\"text\" id=\"(-5=|?OKJCZ7+Z_H8{7w\"><field name=\"TEXT\">PAYMENT EXPIRES IN </field></shadow></value><value name=\"arg1\"><block type=\"variables_get\" id=\"=@*s#JZ[0*SD4sCRiBW;\"><field name=\"VAR\" id=\"u+|!O({klB`dPM(ECAK^\">paymenttimer</field></block></value></block></value><next><block type=\"label_set_text\" id=\"h3:ok@ShECb+*yaHfSTp\"><field name=\"COMPONENT\">nameorquantity</field><value name=\"TEXT\"><shadow type=\"text\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"Cf-R/QR)dPha2T{wk{o[\"><field name=\"VAR\" id=\"`ZfUqIiSEjh{NMci#Fyg\">name</field></block></value><next><block type=\"label_set_text\" id=\"3z4P$_bKj!!E/{)aj87=\"><field name=\"COMPONENT\">pricelabel</field><value name=\"TEXT\"><shadow type=\"text\" id=\"*6_sx9d%j%f:W}%SXMU.\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"text_add\" id=\"LG(bupj?oSAFl`49h*SQ\"><value name=\"arg0\"><shadow type=\"text\" id=\"qc@e*vG^4^?fG$t+sIp?\"><field name=\"TEXT\">$</field></shadow></value><value name=\"arg1\"><block type=\"variables_get\" id=\"pm^F`om+A*q]x)R#_YOn\"><field name=\"VAR\" id=\"p9nD(PRu;O*}ejnoVRv=\">total</field></block></value></block></value><next><block type=\"timer_delay_ms\" id=\"hfrPnEP6Mo}3uXP}qT8w\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"^|fwyqC-1UF=h1weN30M\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"controls_if\" id=\"uRXpYnW;!1.jc?aT~Rt3\"><value name=\"IF0\"><block type=\"rfid_cardOn\" id=\"y8TUH%m[oL6g;`!Ae(C.\"><field name=\"RFID\">rfid_1</field></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"4QEh!/,{@7i`ctkt:PLv\"><field name=\"VAR\" id=\"Agu6(8}{/!y%#K^5BU!(\">rfid</field><value name=\"VALUE\"><block type=\"rfid_uid\" id=\"a.VWq)T}lSti9m5+1,;^\"><field name=\"RFID\">rfid_1</field></block></value><next><block type=\"procedures_callnoreturn\" id=\"r:(wiMwX-z_(oiZkNT:_\"><mutation name=\"thanks\"></mutation><next><block type=\"controls_flow_statements\" id=\"H_|][t~ajp4K-KnnZ+LN\"><field name=\"FLOW\">BREAK</field></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></statement></block><block type=\"procedures_defnoreturn\" id=\"DHw8^(eQZBnt)Ix:H==!\" x=\"-1190\" y=\"250\"><field name=\"NAME\">thanks</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"rgb_unit_set_color_from\" id=\"z0cMud!Sv6~[yII1)G3,\"><field name=\"VARNAME\">rgb_0</field><field name=\"COLOR\">#33ff33</field><value name=\"FROM\"><shadow type=\"math_number\" id=\"]*}VMOfN(ASg|Y2z*;;k\"><field name=\"NUM\">1</field></shadow></value><value name=\"TO\"><shadow type=\"math_number\" id=\"hAc78HlZ6VaqP:Pqs]R+\"><field name=\"NUM\">3</field></shadow></value><next><block type=\"variables_set\" id=\"|+!+-+iCX_U*;F!.(8`,\"><field name=\"VAR\" id=\"IqlFRy`h6fSXg[l?s`ve\">stock</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"3E:(d@h5k2^Rsc`/4$G,\"><field name=\"OP\">MINUS</field><value name=\"A\"><block type=\"variables_get\" id=\"`*i8g}K]kyC1JTajq`aB\"><field name=\"VAR\" id=\"IqlFRy`h6fSXg[l?s`ve\">stock</field></block></value><value name=\"B\"><block type=\"variables_get\" id=\"v7PKJ2jG4Y[D[jky!C+d\"><field name=\"VAR\" id=\"QjefD_Nn}pw]}=gLL2_h\">quantity</field></block></value></block></value><next><block type=\"label_set_mode\" id=\"/tyIb}L]E3!bc7H4,6Dq\"><field name=\"COMPONENT\">pricelabel</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"]4K*vat,`C8fjzI:t*y(\"><field name=\"COMPONENT\">timerlabel</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"6i(gz3o-EF{6(BjE-p84\"><field name=\"COMPONENT\">stocklabel</field><field name=\"MODE\">False</field><next><block type=\"label_set_text\" id=\"!ur+ETbPEl0gFP2C#6Z@\"><field name=\"COMPONENT\">nameorquantity</field><value name=\"TEXT\"><shadow type=\"text\" id=\"$s=sILM!=g;6Nm}LNeC^\"><field name=\"TEXT\">THANK YOU</field></shadow></value><next><block type=\"label_set_text\" id=\"tLbk~qxl5yLZd0EPF3~4\"><field name=\"COMPONENT\">stocklabel</field><value name=\"TEXT\"><shadow type=\"text\" id=\"J2ST(0n--u}b/fp5T.l7\"><field name=\"TEXT\">Please take your item</field></shadow></value><next><block type=\"controls_whileUntil\" id=\"$a;[F0UNbhQ1%!-XLS1B\"><field name=\"MODE\">WHILE</field><value name=\"BOOL\"><block type=\"logic_compare\" id=\"juTHf]L8i)`.~cJTt[mT\"><field name=\"OP\">GTE</field><value name=\"A\"><block type=\"unit_tof_state\" id=\"Dv%V`g!~Az4g)SL=IQ*8\"><field name=\"TOF\">tof_0</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"C%g){uLiUKo?YJ0:i}C0\"><field name=\"NUM\">50</field></block></value></block></value><statement name=\"DO\"><block type=\"timer_delay_ms\" id=\")O7#;6hV=@)cCNkjQ9lR\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"=Pl3xGi0=km*I.1euC*r\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"controls_if\" id=\"vjl!V.1$EM}7%;q#0|g8\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"*F4Zeki*~wvJ,S-+dgZS\"><field name=\"OP\">LTE</field><value name=\"A\"><block type=\"unit_tof_state\" id=\"!7f}6_oBDRt,Yl{rA`8I\"><field name=\"TOF\">tof_0</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"5NmZ-(~plAcDU37h.Ug7\"><field name=\"NUM\">50</field></block></value></block></value><statement name=\"DO0\"><block type=\"controls_flow_statements\" id=\"GhUt.UZ4w%$WaS_?1=hi\"><field name=\"FLOW\">BREAK</field></block></statement></block></next></block></statement><next><block type=\"timer_delay_ms\" id=\"A/g,)]I~^UhLrE2I!CY,\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"cy#8IsVyfZ]!:m`[*cRT\"><field name=\"NUM\">1</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type=\"procedures_defnoreturn\" id=\"Z-~2,r_FE*pBzlR5:[w`\" x=\"-3030\" y=\"490\"><field name=\"NAME\">out</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"controls_whileUntil\" id=\"@(U;i(3dSyR2W{vEbikm\"><field name=\"MODE\">WHILE</field><value name=\"BOOL\"><block type=\"logic_compare\" id=\"2#t,KL0MB.E3E=u{Nk^C\"><field name=\"OP\">NEQ</field><value name=\"A\"><block type=\"rfid_uid\" id=\"}n51al[Vhn9nR{_,%[[$\"><field name=\"RFID\">rfid_1</field></block></value><value name=\"B\"><block type=\"text\" id=\"}|{YmmL=A_9;t]7G1O_v\"><field name=\"TEXT\">527bf611ce</field></block></value></block></value><statement name=\"DO\"><block type=\"procedures_callnoreturn\" id=\")!T$T9PW`of]Q__f9@/@\"><mutation name=\"breach\"></mutation><next><block type=\"rgb_unit_set_color_from\" id=\"KPWwx-`9,rn:.!7XEBzN\"><field name=\"VARNAME\">rgb_0</field><field name=\"COLOR\">#ff0000</field><value name=\"FROM\"><shadow type=\"math_number\" id=\"[E#lxN!rX0oO/9Sld{8%\"><field name=\"NUM\">1</field></shadow></value><value name=\"TO\"><shadow type=\"math_number\" id=\"MJu,Gcvt.y=T%:*90nWZ\"><field name=\"NUM\">3</field></shadow></value><next><block type=\"label_set_mode\" id=\"~ua*#S.hgP=IE:CO0j-9\"><field name=\"COMPONENT\">stocklabel</field><field name=\"MODE\">False</field><next><block type=\"label_set_mode\" id=\"NIzutF8juw1VAwqe%`Xx\"><field name=\"COMPONENT\">nameorquantity</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"#L|tJ9hX`]KEc6VfD86e\"><field name=\"COMPONENT\">timerlabel</field><field name=\"MODE\">True</field><next><block type=\"label_set_text\" id=\"43eQ{_qW9Z7svuJq`*e.\"><field name=\"COMPONENT\">stocklabel</field><value name=\"TEXT\"><shadow type=\"text\" id=\"Y7mg(+k2bV#nbsyVmzgK\"><field name=\"TEXT\">OUT OF STOCK</field></shadow></value><next><block type=\"controls_if\" id=\"G1=^xDN.EGp,rNO!3ATN\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"$X|zE5R1N^?*xe};.,^$\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"rfid_uid\" id=\"Um7r]Zi5MnG+4HQM8rYc\"><field name=\"RFID\">rfid_1</field></block></value><value name=\"B\"><block type=\"text\" id=\"h_42JtEX}{paS{3092;P\"><field name=\"TEXT\">527bf611ce</field></block></value></block></value><statement name=\"DO0\"><block type=\"controls_flow_statements\" id=\"iE+45rrcXqOe|3aMR!Q~\"><field name=\"FLOW\">BREAK</field></block></statement><next><block type=\"timer_delay_ms\" id=\"2^]ku;.(8v]DhL4KbhUw\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"f$H;Gts.Yw#|}sC;rQm2\"><field name=\"NUM\">1</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement><next><block type=\"procedures_callnoreturn\" id=\"kzVWm?tlMK~vtJIJyxg2\"><mutation name=\"restock\"></mutation></block></next></block></statement></block>","Blockly.Remotes":[],"Blockly.RemotePlus":[{"id":"__title","blockId":"","createTime":1676022057383,"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

Alycia Yak

Alycia Yak

2 projects • 0 followers
Arthur

Arthur

0 projects • 0 followers
224539J

224539J

0 projects • 0 followers
Brandon

Brandon

0 projects • 0 followers

Comments

Add projectSign up / Login