You've already forked UIFlowLessons
mirror of
https://github.com/m5stack/UIFlowLessons.git
synced 2026-05-20 11:02:19 -07:00
34a000ba25
– API code has been removed. – The SignedByte block has been moved to the top of the program.
2 lines
23 KiB
Plaintext
2 lines
23 KiB
Plaintext
{"components":[{"id":"_stickscreen","createTime":1693465804172,"name":"screen","x":0,"y":0,"width":120,"height":240,"backgroundColor":"#111111","backgroundImage":"","size":0,"screenType":"default","type":"screen"},{"id":"_6xc59@LV54cbxa+","createTime":1693466638315,"isCoreTwo":false,"isPaper":false,"name":"label0","x":58,"y":34,"color":"#ffa800","text":"R","font":"lcd.FONT_DejaVu18","rotation":0,"screenType":"default","type":"label","layer":7},{"id":"X6CeMyTrX0*JBSg&","createTime":1693466695316,"isCoreTwo":false,"isPaper":false,"name":"label1","x":26,"y":103,"color":"#00ff5f","text":"0","font":"lcd.FONT_DejaVu40","rotation":0,"screenType":"default","type":"label","layer":9},{"id":"c1^IENxIOhg@+ztv","createTime":1693466740307,"isCoreTwo":false,"isPaper":false,"name":"label2","x":6,"y":0,"color":"#00c4ff","text":"speed","font":"lcd.FONT_Comic","rotation":0,"screenType":"default","type":"label","layer":11},{"id":"K3UluccDhm@ZuN`z","createTime":1693466780538,"name":"rectangle0","x":10,"y":80,"width":60,"height":5,"borderColor":"#000000","backgroundColor":"#FFFFFF","screenType":"default","type":"rectangle","layer":12},{"id":"r2=m&g_v&+ipVyli","createTime":1693466783838,"name":"rectangle1","x":10,"y":70,"width":50,"height":5,"borderColor":"#000000","backgroundColor":"#FFFFFF","screenType":"default","type":"rectangle","layer":13},{"id":"yM3b=@08P%iN7GCh","createTime":1693466785601,"name":"rectangle2","x":10,"y":60,"width":40,"height":5,"borderColor":"#000000","backgroundColor":"#FFFFFF","screenType":"default","type":"rectangle","layer":14},{"id":"_P4kZa=H096jnw!r","createTime":1693466787597,"name":"rectangle3","x":10,"y":50,"width":30,"height":5,"borderColor":"#000000","backgroundColor":"#FFFFFF","screenType":"default","type":"rectangle","layer":15},{"id":"B8$dTT90vGtV8M2m","createTime":1693466789320,"name":"rectangle4","x":10,"y":40,"width":20,"height":5,"borderColor":"#000000","backgroundColor":"#FFFFFF","screenType":"default","type":"rectangle","layer":16}],"type":"stick-C","versions":"Beta","units":[],"hats":[],"stamps":[],"blockly":"<variables><variable id=\"fz#?F,/_fI;cU4HZ#[^^\">speedAbs</variable><variable id=\":Tw1O^~eo?1aI_/}lo3r\">speed</variable><variable id=\"}d^cBB6xQE6]uCjqi#{k\">turn</variable><variable id=\"-N];?npkVRs6u+Nik6!+\">slaveSSID</variable><variable id=\"g5#V9^~1Dn|n7tIRn8st\">slaveMAC</variable><variable id=\"}q1g$ZL];mgj?78Hy?J6\">signSpeed</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"50\" y=\"50\"><next><block type=\"__SignedByte_Init\" id=\"Tt``E8rt%CP6l6}C-RK~\"><next><block type=\"procedures_callnoreturn\" id=\"TImZ_;2om+6GGFiyeB7p\"><mutation name=\"clear\"></mutation><next><block type=\"m5_espnow_init_channel\" id=\"pwtt@E3EX.=IP%W0yoN:\"><field name=\"type\">0</field><value name=\"channel\"><shadow type=\"math_slider\" id=\"gAgz@,!-;?[J4X7}c;L5\"><field name=\"NUM\" min=\"1\" max=\"13\" step=\"1\">1</field></shadow></value><next><block type=\"variables_set\" id=\"FTLWdR;Px;#B=E*u_UgS\"><field name=\"VAR\" id=\"-N];?npkVRs6u+Nik6!+\">slaveSSID</field><value name=\"VALUE\"><block type=\"text\" id=\"YIBP_fEeOhOE{r7XHwIL\"><field name=\"TEXT\">AtomMotion</field></block></value><next><block type=\"variables_set\" id=\"y=aGBVdC6dE$Y4(u6Aom\"><field name=\"VAR\" id=\"g5#V9^~1Dn|n7tIRn8st\">slaveMAC</field><value name=\"VALUE\"><block type=\"logic_null\" id=\"/pUs2S!D1ZPumi`^8Rfs\"></block></value><next><block type=\"controls_whileUntil\" id=\"JFv=@|PNtN4ScH1UD!,X\"><field name=\"MODE\">WHILE</field><value name=\"BOOL\"><block type=\"logic_compare\" id=\"kB?YsQ10#ijH#^O`}yPw\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"j!v+(Yf/mU5WV||,ohCV\"><field name=\"VAR\" id=\"g5#V9^~1Dn|n7tIRn8st\">slaveMAC</field></block></value><value name=\"B\"><block type=\"logic_null\" id=\"o_Esh`GRv~Q:S]I;Pu/t\"></block></value></block></value><statement name=\"DO\"><block type=\"variables_set\" id=\"Sezo#tNb6Hsc!TrE$]nZ\"><field name=\"VAR\" id=\"g5#V9^~1Dn|n7tIRn8st\">slaveMAC</field><value name=\"VALUE\"><block type=\"m5_espnow_get_remote_mac1\" id=\")8k*]?3rl$kHl{.K5!U}\"><field name=\"type\">1</field><value name=\"ssid\"><shadow type=\"text\" id=\"PNvH`7FEPRKFYx|wew_[\"><field name=\"TEXT\"></field></shadow><block type=\"variables_get\" id=\"ED-,,Xjv*#wJ$FD0Fe|+\"><field name=\"VAR\" id=\"-N];?npkVRs6u+Nik6!+\">slaveSSID</field></block></value></block></value></block></statement><next><block type=\"m5_espnow_add_peer\" id=\"8Fm-:4~LUO[1@|9kgWZ,\"><mutation isEncrypt=\"False\"></mutation><field name=\"ifidx\">0</field><value name=\"MAC\"><shadow type=\"text\" id=\"FH)`pI$Kyj]c}gT/}yfN\"><field name=\"TEXT\"></field></shadow><block type=\"variables_get\" id=\"]Z=utODb,mm@Z8fOkpr7\"><field name=\"VAR\" id=\"g5#V9^~1Dn|n7tIRn8st\">slaveMAC</field></block></value><value name=\"ID\"><shadow type=\"math_slider\" id=\"V$Q3{H!elBnZ*RWE;btc\"><field name=\"NUM\" min=\"1\" max=\"10\" step=\"1\">1</field></shadow></value><next><block type=\"variables_set\" id=\"Uz0927p,AWrV[$_`pFGC\"><field name=\"VAR\" id=\":Tw1O^~eo?1aI_/}lo3r\">speed</field><value name=\"VALUE\"><block type=\"math_number\" id=\"[/jx?(7{=N#VKDau2NL!\"><field name=\"NUM\">0</field></block></value><next><block type=\"variables_set\" id=\"[CTxS|ktb`GtR#S@G7oA\"><field name=\"VAR\" id=\"}d^cBB6xQE6]uCjqi#{k\">turn</field><value name=\"VALUE\"><block type=\"math_number\" id=\"(ITWE+uqq-G*zK$)=;-{\"><field name=\"NUM\">0</field></block></value><next><block type=\"basic_on_loop\" id=\"AlH9FIb+6wB~Q}^GXDYP\"><statement name=\"LOOP\"><block type=\"procedures_callnoreturn\" id=\"ZV+as7,hLc8uuA+i)y#-\"><mutation name=\"clear\"></mutation><next><block type=\"variables_set\" id=\"FU,n.K[=Sj!vkH-/_m2T\"><field name=\"VAR\" id=\":Tw1O^~eo?1aI_/}lo3r\">speed</field><value name=\"VALUE\"><block type=\"IMU_GET_X\" id=\"WT_*%HYL|o5mTM0GWae+\"></block></value><next><block type=\"variables_set\" id=\"t4qlo[Jn3sYf9OM%mT]G\"><field name=\"VAR\" id=\"}q1g$ZL];mgj?78Hy?J6\">signSpeed</field><value name=\"VALUE\"><block type=\"math_number\" id=\"c/9E!W:`VpC)+Y5j^z`O\"><field name=\"NUM\">1</field></block></value><next><block type=\"controls_if\" id=\"`8pkEe~/1l6-=Oo}5fHp\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"G=hxX^v):j+hr_|Oqi[L\"><field name=\"OP\">NEQ</field><value name=\"A\"><block type=\"variables_get\" id=\"Foa6wef23X#!q{m*s,+J\"><field name=\"VAR\" id=\":Tw1O^~eo?1aI_/}lo3r\">speed</field></block></value><value name=\"B\"><block type=\"math_number\" id=\";awVMMH~t01m$uG0A1UX\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"Ew~4?Yn8iTca^H$0hWDD\"><field name=\"VAR\" id=\"}q1g$ZL];mgj?78Hy?J6\">signSpeed</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"n~9tKAxEZez|%psaKvjZ\"><field name=\"OP\">DIVIDE</field><value name=\"A\"><block type=\"variables_get\" id=\"DtgG3TE]xrl%q=bm~4n]\"><field name=\"VAR\" id=\":Tw1O^~eo?1aI_/}lo3r\">speed</field></block></value><value name=\"B\"><block type=\"math_single\" id=\"[8A2mWTA_cNr=ry$zCtj\"><field name=\"OP\">ABS</field><value name=\"NUM\"><block type=\"variables_get\" id=\"/ZAj%$GsU^_CqOuAkh!f\"><field name=\"VAR\" id=\":Tw1O^~eo?1aI_/}lo3r\">speed</field></block></value></block></value></block></value></block></statement><next><block type=\"variables_set\" id=\"/{Lh[5z)=127]^3`/pY$\"><field name=\"VAR\" id=\":Tw1O^~eo?1aI_/}lo3r\">speed</field><value name=\"VALUE\"><block type=\"math_constrain\" id=\";[X0Ya$Yp;LCJu38mvw3\"><value name=\"VALUE\"><shadow type=\"math_number\" id=\"lHuUcr}/m7gF27G:|U2p\"><field name=\"NUM\">50</field></shadow><block type=\"math_single\" id=\"0HnQP_l^^]!?O#F{B~(D\"><field name=\"OP\">ABS</field><value name=\"NUM\"><block type=\"variables_get\" id=\"4xS_.9Lt|!q,6Z374t|p\"><field name=\"VAR\" id=\":Tw1O^~eo?1aI_/}lo3r\">speed</field></block></value></block></value><value name=\"LOW\"><shadow type=\"math_number\" id=\"Jw^ao9g,dk~hv3r]FT+)\"><field name=\"NUM\">0</field></shadow></value><value name=\"HIGH\"><shadow type=\"math_number\" id=\"(:(7QrZ0TFB^^vLbD=,%\"><field name=\"NUM\">15</field></shadow></value></block></value><next><block type=\"variables_set\" id=\"!?;WF3NT=Q7qpo4?5a,z\"><field name=\"VAR\" id=\":Tw1O^~eo?1aI_/}lo3r\">speed</field><value name=\"VALUE\"><block type=\"convent_int\" id=\";QOiF%tePKH!y;d]*M[7\"><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"-jGxNrXd_k|Ok#60a]Mn\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><block type=\"variables_get\" id=\"c,*~d%`SCr1XZAt!-2TK\"><field name=\"VAR\" id=\"}q1g$ZL];mgj?78Hy?J6\">signSpeed</field></block></value><value name=\"B\"><block type=\"variables_get\" id=\"6{|Ang2A-L5-id{nT}n.\"><field name=\"VAR\" id=\":Tw1O^~eo?1aI_/}lo3r\">speed</field></block></value></block></value></block></value><next><block type=\"procedures_callnoreturn\" id=\"CT./2l6nbJ{zf:`IC-2:\"><mutation name=\"drawSpeed\"></mutation><next><block type=\"variables_set\" id=\"pA2ReH:;w}oHZ1S0v`yb\"><field name=\"VAR\" id=\"}d^cBB6xQE6]uCjqi#{k\">turn</field><value name=\"VALUE\"><block type=\"convent_int\" id=\"`YrNbRwie7WCg!n`nD.D\"><value name=\"VALUE\"><block type=\"IMU_GET_Y\" id=\"O1:563xwC|w`8S1C$;B1\"></block></value></block></value><next><block type=\"controls_if\" id=\"Di/CEyi=t)hpEZub22$7\"><mutation elseif=\"1\" else=\"1\"></mutation><value name=\"IF0\"><block type=\"logic_compare\" id=\"U]^`|xz,Y5mo[1vDAjQt\"><field name=\"OP\">LT</field><value name=\"A\"><block type=\"variables_get\" id=\"?%`3I*~fhd#`].qYr75A\"><field name=\"VAR\" id=\"}d^cBB6xQE6]uCjqi#{k\">turn</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"zuhaqWAi_XqJ#lhMY2}j\"><field name=\"NUM\">-20</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"OiTNqiGPoka_)ee5^l1H\"><field name=\"VAR\" id=\"}d^cBB6xQE6]uCjqi#{k\">turn</field><value name=\"VALUE\"><block type=\"math_number\" id=\"xs_i`QtX278wJDy2jx|W\"><field name=\"NUM\">-1</field></block></value></block></statement><value name=\"IF1\"><block type=\"logic_compare\" id=\"hSn6z[{opH:d*c@0SLXg\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"variables_get\" id=\"x_v1(7tUoPwNB)maHVmP\"><field name=\"VAR\" id=\"}d^cBB6xQE6]uCjqi#{k\">turn</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"%6w|doyO_ItC$JDU(fE(\"><field name=\"NUM\">20</field></block></value></block></value><statement name=\"DO1\"><block type=\"variables_set\" id=\"dXW1H/$MsGib;:1%ZcJb\"><field name=\"VAR\" id=\"}d^cBB6xQE6]uCjqi#{k\">turn</field><value name=\"VALUE\"><block type=\"math_number\" id=\"eP8f%+py=xn}6}=}/wTE\"><field name=\"NUM\">1</field></block></value></block></statement><statement name=\"ELSE\"><block type=\"variables_set\" id=\"va}3^8k;z*b:r;[(#qKK\"><field name=\"VAR\" id=\"}d^cBB6xQE6]uCjqi#{k\">turn</field><value name=\"VALUE\"><block type=\"math_number\" id=\"~kW(P`N[*EG2T{Td0?n;\"><field name=\"NUM\">0</field></block></value></block></statement><next><block type=\"procedures_callnoreturn\" id=\"g9=wCly__wzVt=Yt]:G~\"><mutation name=\"drawTurn\"></mutation><next><block type=\"m5_espnow_send_data\" id=\"x,/9R}G`fqV3DMQruEwW\"><value name=\"id\"><shadow type=\"math_slider\" id=\"CQk%RZ1?ztA=DF?w?9?Y\"><field name=\"NUM\" min=\"1\" max=\"10\" step=\"1\">1</field></shadow></value><value name=\"data\"><shadow type=\"text\" id=\"iqj94ux?|k)}_h|g=ufW\"><field name=\"TEXT\">1234</field></shadow><block type=\"lists_create_with\" id=\"a8$ycS83mJ=(grv}f`D|\"><mutation items=\"2\"></mutation><value name=\"ADD0\"><block type=\"__SignedByte_encode\" id=\"N*:QDkC5!W1n}xuBvcZa\"><value name=\"number\"><block type=\"variables_get\" id=\"l/bCO~;qXe(Ljjmp;Zxg\"><field name=\"VAR\" id=\":Tw1O^~eo?1aI_/}lo3r\">speed</field></block></value></block></value><value name=\"ADD1\"><block type=\"__SignedByte_encode\" id=\"bk=Hjz1wXOsm03ceI(iG\"><value name=\"number\"><block type=\"variables_get\" id=\",F,W%gbQScpdGC#b1sQY\"><field name=\"VAR\" id=\"}d^cBB6xQE6]uCjqi#{k\">turn</field></block></value></block></value></block></value><next><block type=\"timer_delay_ms\" id=\"seDJ!owZ596gXZ8+Rs@@\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"8c=PV6W7[9Ls^Kr/5`4v\"><field name=\"NUM\">100</field></shadow></value></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></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block><block type=\"procedures_defnoreturn\" id=\"n5R!pGVDtf$?%H}oK)x$\" x=\"790\" y=\"50\"><field name=\"NAME\">drawSpeed</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"controls_if\" id=\",$!=:(VV`?9|:+-Z1^VX\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"8j!@ln@mwa$}5rxdXKsA\"><field name=\"OP\">LT</field><value name=\"A\"><block type=\"variables_get\" id=\"HZb(b.K,~QNr(Guo_Cf?\"><field name=\"VAR\" id=\":Tw1O^~eo?1aI_/}lo3r\">speed</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"G_9XEBp.PT`ZCISfqG4Z\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"label_set_mode\" id=\"%rO~g]S{-oP_m#y8AFP-\"><field name=\"COMPONENT\">label0</field><field name=\"MODE\">False</field></block></statement><next><block type=\"variables_set\" id=\"woWY;o:ZPmx,h~}*JA;~\"><field name=\"VAR\" id=\"fz#?F,/_fI;cU4HZ#[^^\">speedAbs</field><value name=\"VALUE\"><block type=\"math_single\" id=\"(F+o.!1y?_vdkT4qp||,\"><field name=\"OP\">ABS</field><value name=\"NUM\"><block type=\"variables_get\" id=\"d/J]6reum^e3K?L#L={V\"><field name=\"VAR\" id=\":Tw1O^~eo?1aI_/}lo3r\">speed</field></block></value></block></value><next><block type=\"controls_if\" id=\"b%^Z49`w6MWGM,Ovh9L*\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"aaJ/Q3]40CFZPf,fq!(a\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"variables_get\" id=\"!4~;[(.tg.b5MEOS`Sqk\"><field name=\"VAR\" id=\"fz#?F,/_fI;cU4HZ#[^^\">speedAbs</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"0LD{Y$A^h!6#!ONE!*/J\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"rect_set_bgcolor_input\" id=\"Cng+hs/d)Xd=Rvb]|.~3\"><field name=\"COMPONENT\">rectangle0</field><value name=\"COLOR\"><block type=\"color_rgb_palette\" id=\"cf_|BDs@?@2*lY@{ya.:\"><mutation mode=\"palette\"></mutation><field name=\"MODE\">palette</field><field name=\"COLOR\">#33ffff</field></block></value></block></statement><next><block type=\"controls_if\" id=\"|e5M5,i3j|}E.5+jh].u\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"vRRYb;*4P~+LzHn{$rAI\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"variables_get\" id=\"S|Hx_TGyqua7oWe%FQ73\"><field name=\"VAR\" id=\"fz#?F,/_fI;cU4HZ#[^^\">speedAbs</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"-%CL^mGTzv*+@Z_yiAvU\"><field name=\"NUM\">3</field></block></value></block></value><statement name=\"DO0\"><block type=\"rect_set_bgcolor_input\" id=\"ca;ZOdO-YqS6m2j;/SVx\"><field name=\"COMPONENT\">rectangle1</field><value name=\"COLOR\"><block type=\"color_rgb_palette\" id=\",E!mR2RO{?ynu:8S8{=.\"><mutation mode=\"palette\"></mutation><field name=\"MODE\">palette</field><field name=\"COLOR\">#33ffff</field></block></value></block></statement><next><block type=\"controls_if\" id=\"$;%n%j|KwA,+[yCLW.mU\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"ef.6^}omm)E,g?T6Jm7:\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"variables_get\" id=\"jsQ.hIt1iJB76!40SP*D\"><field name=\"VAR\" id=\"fz#?F,/_fI;cU4HZ#[^^\">speedAbs</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"[4KE$4tujCF.tRbA-gff\"><field name=\"NUM\">6</field></block></value></block></value><statement name=\"DO0\"><block type=\"rect_set_bgcolor_input\" id=\"JD5p%v`2@lGP!?PNT4LM\"><field name=\"COMPONENT\">rectangle2</field><value name=\"COLOR\"><block type=\"color_rgb_palette\" id=\"i[2_~;;3nd7#f)Rv-|Do\"><mutation mode=\"palette\"></mutation><field name=\"MODE\">palette</field><field name=\"COLOR\">#33ff33</field></block></value></block></statement><next><block type=\"controls_if\" id=\".]iS9Vc12cKpvhr*7hML\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"+3W=Zx^CByx@K#BGZmdQ\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"variables_get\" id=\"^-vyXQ%SBd5`b3ztFFLO\"><field name=\"VAR\" id=\"fz#?F,/_fI;cU4HZ#[^^\">speedAbs</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"[Q%Q~/NPCBQPnG0|W:,q\"><field name=\"NUM\">9</field></block></value></block></value><statement name=\"DO0\"><block type=\"rect_set_bgcolor_input\" id=\"$!|`AR-uOZMq9FKLp[T-\"><field name=\"COMPONENT\">rectangle3</field><value name=\"COLOR\"><block type=\"color_rgb_palette\" id=\"9Dd[n,m/~FGGodVdT,Hb\"><mutation mode=\"palette\"></mutation><field name=\"MODE\">palette</field><field name=\"COLOR\">#ffcc33</field></block></value></block></statement><next><block type=\"controls_if\" id=\"YLEurwi0L;M+80f#VDq(\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"W]F`8o4giX:?5J*JEhp{\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"variables_get\" id=\"7:b%;jKiouuISc=,q3qw\"><field name=\"VAR\" id=\"fz#?F,/_fI;cU4HZ#[^^\">speedAbs</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"Dx5IJk[?kJ[MZzsy78QM\"><field name=\"NUM\">12</field></block></value></block></value><statement name=\"DO0\"><block type=\"rect_set_bgcolor_input\" id=\"#k=O_?A$uR09pxZ}PK+O\"><field name=\"COMPONENT\">rectangle4</field><value name=\"COLOR\"><block type=\"color_rgb_palette\" id=\"jSKGozn_265%7g!pHy)V\"><mutation mode=\"palette\"></mutation><field name=\"MODE\">palette</field><field name=\"COLOR\">#ff0000</field></block></value></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type=\"procedures_defnoreturn\" id=\"(JDQ%K1m(BZePGCS}u@3\" x=\"1230\" y=\"50\"><field name=\"NAME\">drawTurn</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"controls_if\" id=\"v=z~b-ZJic1fKBlp8O)x\"><mutation elseif=\"1\" else=\"1\"></mutation><value name=\"IF0\"><block type=\"logic_compare\" id=\"hTbH(@%#+kb!R[`/)=An\"><field name=\"OP\">LT</field><value name=\"A\"><block type=\"variables_get\" id=\"Fh^3ukQ}5Z8W#.9A{-^0\"><field name=\"VAR\" id=\"}d^cBB6xQE6]uCjqi#{k\">turn</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"heeA0=0${8eZ6ZY0k{?C\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"label_set_text\" id=\"J72!Z$X|J$=k]cr0nM*F\"><field name=\"COMPONENT\">label1</field><value name=\"TEXT\"><shadow type=\"text\" id=\"VC5i)#uqkJujS#kv/T%y\"><field name=\"TEXT\"><</field></shadow></value></block></statement><value name=\"IF1\"><block type=\"logic_compare\" id=\"lDaZ9TV-aUBuOngg4n#a\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"variables_get\" id=\"Ar}H1`VCCsYr]4D7D!ws\"><field name=\"VAR\" id=\"}d^cBB6xQE6]uCjqi#{k\">turn</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"ful7XpD1[b2[n*qY|7%H\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO1\"><block type=\"label_set_text\" id=\"W!7GD-4Nt]`acNMAvw8~\"><field name=\"COMPONENT\">label1</field><value name=\"TEXT\"><shadow type=\"text\" id=\",Sv+@NUuhFswT;+][|Ia\"><field name=\"TEXT\">></field></shadow></value></block></statement><statement name=\"ELSE\"><block type=\"label_set_text\" id=\"o.WuK}EY{HT6(ue*syY4\"><field name=\"COMPONENT\">label1</field><value name=\"TEXT\"><shadow type=\"text\" id=\"7x,#yPtji`tBjF#Fu_DB\"><field name=\"TEXT\"></field></shadow></value></block></statement><next><block type=\"label_set_mode\" id=\"BEcFl;[|uCX,[r:Lr%y~\"><field name=\"COMPONENT\">label1</field><field name=\"MODE\">False</field></block></next></block></statement></block><block type=\"procedures_defnoreturn\" id=\"os!.F6K/vs%6T!F^Tacq\" x=\"1230\" y=\"350\"><field name=\"NAME\">clear</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"rect_set_bgcolor_input\" id=\"^V)i1aIr/-_fD9!*;wA!\"><field name=\"COMPONENT\">rectangle0</field><value name=\"COLOR\"><block type=\"color_rgb_palette\" id=\".i9p/@:Jhhoa^![JWC~z\"><mutation mode=\"palette\"></mutation><field name=\"MODE\">palette</field><field name=\"COLOR\">#333333</field></block></value><next><block type=\"rect_set_bgcolor_input\" id=\"#3ggwWVL@+N;!LdkfRo?\"><field name=\"COMPONENT\">rectangle1</field><value name=\"COLOR\"><block type=\"color_rgb_palette\" id=\"gpa~AfL^ZALRT+PkGCyt\"><mutation mode=\"palette\"></mutation><field name=\"MODE\">palette</field><field name=\"COLOR\">#333333</field></block></value><next><block type=\"rect_set_bgcolor_input\" id=\"r=AV:9!eEIkQ:)%/5Ct=\"><field name=\"COMPONENT\">rectangle2</field><value name=\"COLOR\"><block type=\"color_rgb_palette\" id=\"TOZ#xNWKrJ;sNc^_|3Yx\"><mutation mode=\"palette\"></mutation><field name=\"MODE\">palette</field><field name=\"COLOR\">#333333</field></block></value><next><block type=\"rect_set_bgcolor_input\" id=\"9UH*!F9:Tn7nduOPMpKm\"><field name=\"COMPONENT\">rectangle3</field><value name=\"COLOR\"><block type=\"color_rgb_palette\" id=\"Ta,ZGE!-4D;y0gVD--.%\"><mutation mode=\"palette\"></mutation><field name=\"MODE\">palette</field><field name=\"COLOR\">#333333</field></block></value><next><block type=\"rect_set_bgcolor_input\" id=\"!Ou-,,j*M`ga^d+y$PJa\"><field name=\"COMPONENT\">rectangle4</field><value name=\"COLOR\"><block type=\"color_rgb_palette\" id=\"u$OEWIITEtU=mp:[GYro\"><mutation mode=\"palette\"></mutation><field name=\"MODE\">palette</field><field name=\"COLOR\">#333333</field></block></value><next><block type=\"label_set_mode\" id=\"7^0*(Lm/TEX%s#5@#$|r\"><field name=\"COMPONENT\">label0</field><field name=\"MODE\">True</field><next><block type=\"label_set_mode\" id=\"vdtkF6Ep6.LT2tIR=kDF\"><field name=\"COMPONENT\">label1</field><field name=\"MODE\">True</field></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block>","Blockly.Remotes":[],"Blockly.RemotePlus":[{"id":"__title","blockId":"","createTime":1694443658114,"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":"gOUNMRD5YZQ17hkcjoE9rRfqjimq5PML","topic":"","needShadow":false,"type":"title","x":0,"y":0}],"modules":["imu"],"cbIdList_":[],"eventCBIdList_":[],"apikey":"","uuid":"70323b8b-7738-4ab7-bb26-383b74797cd9"}
|