-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.m5f
1 lines (1 loc) · 18 KB
/
sample.m5f
1
{"components":[{"id":"_coretwoscreen","createTime":1603428689698,"name":"screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#FFFFFF","backgroundImage":"","type":"screen"},{"id":"____buttonA","createTime":1603428689698,"name":"ButtonA","buttonIndex":0,"x":35,"y":216,"width":64,"height":24,"text":"ButtonA","visibility":false,"type":"button"},{"id":"____buttonB","createTime":1603428689699,"name":"ButtonB","buttonIndex":1,"x":125,"y":216,"width":64,"height":24,"text":"ButtonB","visibility":false,"type":"button"},{"id":"____buttonC","createTime":1603428689699,"name":"ButtonC","buttonIndex":2,"x":215,"y":216,"width":64,"height":24,"text":"ButtonC","visibility":false,"type":"button"},{"id":"p51jsMTy2+Gfg3od","createTime":1603430095543,"isCoreTwo":true,"name":"DEVICE_ID","x":15,"y":5,"color":"#000","text":"SigFox Device ID: ","font":"FONT_UNICODE_24","rotation":0,"type":"label","layer":4},{"id":"P11*KxDSRcfG8jdS","createTime":1603430146758,"isCoreTwo":true,"name":"PAC","x":15,"y":60,"color":"#000","text":"PAC number: ","font":"FONT_UNICODE_24","rotation":0,"type":"label","layer":5},{"id":"h*kNzB+gAX%FXNsQ","createTime":1603430214679,"isCoreTwo":true,"name":"deviceIdValue","x":40,"y":35,"color":"#000","text":"XXXXXXXX","font":"FONT_UNICODE_24","rotation":0,"type":"label","layer":6},{"id":"4m*lMez=Soo0IrAU","createTime":1603430256290,"isCoreTwo":true,"name":"pacNumberValue","x":40,"y":85,"color":"#000","text":"XXXXXXXXXXXXXXXX","font":"FONT_UNICODE_24","rotation":0,"type":"label","layer":7},{"id":"&7!&iDS$z-4@45Pl","createTime":1603437055388,"isCoreTwo":true,"name":"ACK","x":15,"y":165,"color":"#000","text":"Ack: ","font":"FONT_UNICODE_24","rotation":0,"type":"label","layer":8},{"id":"aXO2h7LQcAJJ%!@R","createTime":1603437087304,"isCoreTwo":true,"name":"ackValue","x":40,"y":190,"color":"#000","text":"XXXXXXXX","font":"FONT_UNICODE_24","rotation":0,"type":"label","layer":9},{"id":"mZbYXmbI`e2t8Hnh","createTime":1603437545930,"isCoreTwo":true,"name":"COMMAND","x":15,"y":110,"color":"#000","text":"Command: ","font":"FONT_UNICODE_24","rotation":0,"type":"label","layer":10},{"id":"Bc&lQ5r6m8Rm#6MC","createTime":1603437621565,"isCoreTwo":true,"name":"commandValue","x":40,"y":135,"color":"#000","text":"XXXXXXXXXXXX","font":"FONT_UNICODE_24","rotation":0,"type":"label","layer":11},{"id":"sL&ASllWn+7`pUF4","createTime":1603547294489,"isCoreTwo":true,"name":"upLabel","x":65,"y":223,"color":"#000","text":"UP","font":"FONT_MONT_14","rotation":0,"type":"label","layer":12},{"id":"Wl%nRfwu%lizcqtW","createTime":1603547318656,"isCoreTwo":true,"name":"label0","x":145,"y":223,"color":"#000","text":"DOWN","font":"FONT_MONT_14","rotation":0,"type":"label","layer":13},{"id":"Jkmgh9P@a9kwG0yu","createTime":1603547365594,"isCoreTwo":true,"name":"IDPACLabel","x":230,"y":223,"color":"#000","text":"ID/PAC","font":"FONT_MONT_14","rotation":0,"type":"label","layer":14}],"type":"core2","versions":"Beta","units":[],"hats":[],"blockly":"<variables><variable id=\"%ghx[.3}FczaO%8iaU+i\">_cmd</variable><variable id=\"vyqwp94+!Q8q+!Tw#1jw\">_payload</variable><variable id=\"S}6h8WC6}^KIC;{-ubQE\">_hexStr</variable><variable id=\"9D097F$~E66y]M|_^J/P\">_bits</variable><variable id=\"xw-U1gYT3YRgnwc:+C(#\">isM5Core2</variable><variable id=\"H84.Jn^IWNh,d1wl~io_\">_ack</variable><variable id=\"$SuV:pzKrVH$N=wG:#jW\">_i</variable><variable id=\")6]VXByuHMoWl;cfZGJ$\">tx</variable><variable id=\"f,k7aGJ).pik6f^td]gw\">rx</variable><variable id=\"f~Q`cHN8Xae=cnk0h/Gl\">deviceId</variable><variable id=\"t?)a@!FUsX=?baMd#+-/\">rssi</variable><variable id=\"jGwtNl|sDdr=$MVn]U]1\">pacNumber</variable><variable id=\"t6mF~Of0Ig/4|;5M#vgu\">bsid</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"-270\" y=\"-310\"><next><block type=\"variables_set\" id=\"DA(lO4Vrn7cLqRD5e;lg\"><field name=\"VAR\" id=\"xw-U1gYT3YRgnwc:+C(#\">isM5Core2</field><value name=\"VALUE\"><block type=\"logic_boolean\" id=\"+%z2(/EEYXzaI]z.-rzg\"><field name=\"BOOL\">TRUE</field></block></value><next><block type=\"controls_ifelse\" id=\";C3|#t]-N(Px{bX40Ylr\"><value name=\"IF0\"><block type=\"variables_get\" id=\"=E^=eAj:$WLL+K]{TMxP\"><field name=\"VAR\" id=\"xw-U1gYT3YRgnwc:+C(#\">isM5Core2</field></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"2f#:LFYQ[eJaF16%A#*+\"><field name=\"VAR\" id=\")6]VXByuHMoWl;cfZGJ$\">tx</field><value name=\"VALUE\"><block type=\"math_number\" id=\"C}Q`xHXc5p?m$eiC!pB2\"><field name=\"NUM\">14</field></block></value><next><block type=\"variables_set\" id=\"nK(hGB(m2(*m^TP=~GA!\"><field name=\"VAR\" id=\"f,k7aGJ).pik6f^td]gw\">rx</field><value name=\"VALUE\"><block type=\"math_number\" id=\"W^+l;M9$WyjB4Xopw!.,\"><field name=\"NUM\">13</field></block></value></block></next></block></statement><statement name=\"ELSE\"><block type=\"variables_set\" id=\"e%S8s(ysld}C.}t{t;gw\"><field name=\"VAR\" id=\")6]VXByuHMoWl;cfZGJ$\">tx</field><value name=\"VALUE\"><block type=\"math_number\" id=\"+1ZEUZQ3w`t$E3*Q^a%S\"><field name=\"NUM\">17</field></block></value><next><block type=\"variables_set\" id=\"^;X#G5`RCJeC^HlGL}R=\"><field name=\"VAR\" id=\"f,k7aGJ).pik6f^td]gw\">rx</field><value name=\"VALUE\"><block type=\"math_number\" id=\"7=W?Zx`Hj}5Oq{Un$RRF\"><field name=\"NUM\">16</field></block></value></block></next></block></statement><next><block type=\"uart\" id=\")_tLNNN`CZrl9NqFn-b_\"><field name=\"VAR\">uart1</field><field name=\"BAUD\">9600</field><field name=\"USE_TIMER\">1</field><value name=\"TX\"><shadow type=\"math_number\" id=\"w*)ak*K?%/naL3Sqb0Yg\"><field name=\"NUM\">14</field></shadow><block type=\"variables_get\" id=\"=NK,}Rp0qG$N8T/PbAK!\"><field name=\"VAR\" id=\")6]VXByuHMoWl;cfZGJ$\">tx</field></block></value><value name=\"RX\"><shadow type=\"math_number\" id=\"td]pw9|M!W!)Dy(q@`kA\"><field name=\"NUM\">13</field></shadow><block type=\"variables_get\" id=\"}-uiu)$Pyc%_|Jdiwes/\"><field name=\"VAR\" id=\"f,k7aGJ).pik6f^td]gw\">rx</field></block></value><next><block type=\"basic_on_loop\" id=\"~XS-}XLc(JOf.#j*Bf%J\"><statement name=\"LOOP\"><block type=\"controls_if\" id=\"L%^8WW]VeDHD{Y]Ldlb}\"><mutation elseif=\"2\"></mutation><value name=\"IF0\"><block type=\"button_state\" id=\",p(TOQQuqL2~!,T#f:.i\"><field name=\"BUTTON\">A</field><field name=\"EVENT\">wasPressed</field></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"+mNL7}amFe.Xn$IfwOgu\"><field name=\"VAR\" id=\"H84.Jn^IWNh,d1wl~io_\">_ack</field><value name=\"VALUE\"><block type=\"procedures_callreturn\" id=\"R{Izeo+EZ;p.f#Nr+oa}\"><mutation name=\"sendMessage\"><arg name=\"_payload\"></arg></mutation><value name=\"ARG0\"><block type=\"text\" id=\"zw=,tZAHm|vv,PmqjC`f\"><field name=\"TEXT\">CAFE</field></block></value></block></value></block></statement><value name=\"IF1\"><block type=\"button_state\" id=\"A+prxb.?]aX2*ys@D=W2\"><field name=\"BUTTON\">B</field><field name=\"EVENT\">wasPressed</field></block></value><statement name=\"DO1\"><block type=\"variables_set\" id=\"J1?wjZ*,$E_gTa[s*+G|\"><field name=\"VAR\" id=\"H84.Jn^IWNh,d1wl~io_\">_ack</field><value name=\"VALUE\"><block type=\"procedures_callreturn\" id=\"U$JY`[|lRUvZMkpmF%K4\"><mutation name=\"sendMessage\"><arg name=\"_payload\"></arg></mutation><value name=\"ARG0\"><block type=\"text\" id=\"l`TaAjM8SH^.zP(0sZ{Q\"><field name=\"TEXT\">C0FFEE,1</field></block></value></block></value><next><block type=\"controls_if\" id=\"1@`D#QUEBVp@%c8-[DXV\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"Qfb$WHGIQK{PJ8_#@Ars\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"text_count\" id=\"KCYWW9in^H79*CU`MH,+\"><value name=\"TEXT\"><block type=\"variables_get\" id=\"_K@]!l#2@iI,=P:;E31Y\"><field name=\"VAR\" id=\"H84.Jn^IWNh,d1wl~io_\">_ack</field></block></value><value name=\"SUB\"><block type=\"text\" id=\"BMB$wuQO+{@$+0j}LU1}\"><field name=\"TEXT\">RX=</field></block></value></block></value><value name=\"B\"><block type=\"math_number\" id=\".ESaNq,9Vu=_.uMV/dWy\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"execute\" id=\"2z[Y*n1s_PEQWk?v{dZ4\"><field name=\"CODE\">_ack = _ack[3:].split(' ')\nbsid = ''.join(_ack[2:4])\nrssi = ''.join(_ack[6:8])</field><next><block type=\"variables_set\" id=\",zun979;n]c@%;~7*%d^\"><field name=\"VAR\" id=\"t?)a@!FUsX=?baMd#+-/\">rssi</field><value name=\"VALUE\"><block type=\"procedures_callreturn\" id=\"D}*rSOLGm:1*H(d=j=0F\"><mutation name=\"hexStrToInt\"><arg name=\"_hexStr\"></arg><arg name=\"_bits\"></arg></mutation><value name=\"ARG0\"><block type=\"variables_get\" id=\"k%hX:o0L2{$[N,Rg@Lx7\"><field name=\"VAR\" id=\"t?)a@!FUsX=?baMd#+-/\">rssi</field></block></value><value name=\"ARG1\"><block type=\"math_number\" id=\"}Rs.l*K%TN/x$dA{[Fi:\"><field name=\"NUM\">16</field></block></value></block></value><next><block type=\"label_set_text\" id=\"JF7wi:/pFSrwqMqijB]X\"><field name=\"COMPONENT\">ackValue</field><value name=\"TEXT\"><shadow type=\"text\" id=\"%ex/Cg:E2=d#YuHlIMI6\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"text_add\" id=\"_3`b!x*%)Z-;OVNo]l^u\"><value name=\"arg0\"><shadow type=\"text\" id=\"}jVANn)!OsXZL2,M9DV%\" disabled=\"true\"><field name=\"TEXT\"></field></shadow><block type=\"text_add\" id=\"l24{3]v!b-[7G=hd5{7P\"><value name=\"arg0\"><shadow type=\"text\" id=\"2t~F*hkc8ysS?ErjDHNR\"><field name=\"TEXT\">RSSI: </field></shadow></value><value name=\"arg1\"><block type=\"variables_get\" id=\"|B?ij6v2di`0fZx4bGS*\"><field name=\"VAR\" id=\"t?)a@!FUsX=?baMd#+-/\">rssi</field></block></value></block></value><value name=\"arg1\"><block type=\"text_add\" id=\"ciH3L!5@CjwWPkFR6ngu\"><value name=\"arg0\"><shadow type=\"text\" id=\"~XA!*fD1LzosJk|h]K^K\"><field name=\"TEXT\"> BSID: </field></shadow></value><value name=\"arg1\"><block type=\"variables_get\" id=\"Ky:WyUs[0vJ?Y,%%e4k@\"><field name=\"VAR\" id=\"t6mF~Of0Ig/4|;5M#vgu\">bsid</field></block></value></block></value></block></value></block></next></block></next></block></statement></block></next></block></statement><value name=\"IF2\"><block type=\"button_state\" id=\".7c%?W%4QY}*fRE]?N;x\"><field name=\"BUTTON\">C</field><field name=\"EVENT\">wasPressed</field></block></value><statement name=\"DO2\"><block type=\"variables_set\" id=\"ZkL*cwcKOV[EhSd}jc`a\"><field name=\"VAR\" id=\"f~Q`cHN8Xae=cnk0h/Gl\">deviceId</field><value name=\"VALUE\"><block type=\"procedures_callreturn\" id=\"uTjf~`lf=fhYXKmb2^df\"><mutation name=\"sendCommand\"><arg name=\"_cmd\"></arg></mutation><value name=\"ARG0\"><block type=\"text\" id=\"FYBC|v3?+2A3w{m)W+iV\"><field name=\"TEXT\">AT$I=10</field></block></value></block></value><next><block type=\"label_set_text\" id=\"H{tnXl2Oq|]3`/#@gEXq\"><field name=\"COMPONENT\">deviceIdValue</field><value name=\"TEXT\"><shadow type=\"text\" id=\"tCk^mJ%bvBZ@w*{c^Fq`\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"Wu]f]wZveng1!|q,9;gJ\"><field name=\"VAR\" id=\"f~Q`cHN8Xae=cnk0h/Gl\">deviceId</field></block></value><next><block type=\"text_print\" id=\"L{)QI.;c{CjImOWU8$`?\"><value name=\"TEXT\"><block type=\"text_add\" id=\"HzT@@4*`zJ!wm=k7pB.4\"><value name=\"arg0\"><shadow type=\"text\" id=\"5=,~6gZ6XGtf.H+)q:`;\"><field name=\"TEXT\">SigFox Device ID: </field></shadow></value><value name=\"arg1\"><block type=\"variables_get\" id=\"|{[kBCBDV$rl8^jXcC+}\"><field name=\"VAR\" id=\"f~Q`cHN8Xae=cnk0h/Gl\">deviceId</field></block></value></block></value><next><block type=\"variables_set\" id=\"uaoVVo!Aqr:Cm42H-_o#\"><field name=\"VAR\" id=\"jGwtNl|sDdr=$MVn]U]1\">pacNumber</field><value name=\"VALUE\"><block type=\"procedures_callreturn\" id=\"V=@3}A#%t%:+?=nXzB^^\"><mutation name=\"sendCommand\"><arg name=\"_cmd\"></arg></mutation><value name=\"ARG0\"><block type=\"text\" id=\"p}82$hGqh+Fy,LYiuL[o\"><field name=\"TEXT\">AT$I=11</field></block></value></block></value><next><block type=\"label_set_text\" id=\"|7(Zl)O.7M0=Q63[iN_i\"><field name=\"COMPONENT\">pacNumberValue</field><value name=\"TEXT\"><shadow type=\"text\" id=\"U8k]u;Ly8~eN-VO2^s$L\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"1$D7;|J$kM/RkI9pL]Q2\"><field name=\"VAR\" id=\"jGwtNl|sDdr=$MVn]U]1\">pacNumber</field></block></value><next><block type=\"text_print\" id=\",ayG}^@=]HN7K+Q?t51p\"><value name=\"TEXT\"><block type=\"text_add\" id=\"1Yt`svqr2RYr,KwFJn/+\"><value name=\"arg0\"><shadow type=\"text\" id=\"m/[G=!OiuS:[=hFL8:`n\"><field name=\"TEXT\">PAC number: </field></shadow></value><value name=\"arg1\"><block type=\"variables_get\" id=\"eEVcrm1So[q_w3-,_}?U\"><field name=\"VAR\" id=\"jGwtNl|sDdr=$MVn]U]1\">pacNumber</field></block></value></block></value></block></next></block></next></block></next></block></next></block></next></block></statement></block></statement></block></next></block></next></block></next></block></next></block><block type=\"procedures_defreturn\" id=\"#;}o|%;pUTT]=z_,$$+y\" x=\"770\" y=\"-150\"><field name=\"NAME\">readSerial</field><statement name=\"STACK\"><block type=\"controls_whileUntil\" id=\"}6K#E}jArmwsm5|FTy1c\"><field name=\"MODE\">UNTIL</field><value name=\"BOOL\"><block type=\"uart_any\" id=\"EpoJQ8}bGLq~P]*~EbZT\"><field name=\"VAR\">uart1</field></block></value><next><block type=\"variables_set\" id=\"PS*NDNA6?Pi_/@cad@pr\"><field name=\"VAR\" id=\"H84.Jn^IWNh,d1wl~io_\">_ack</field><value name=\"VALUE\"><block type=\"decode_str\" id=\"K5$k.x!Eky6pZ$Gj$if8\"><value name=\"VALUE\"><block type=\"uart_read\" id=\"g4.l~6~K6nl#SP]d7y|=\"><field name=\"VAR\">uart1</field></block></value></block></value><next><block type=\"execute\" id=\"+QvblFbl|_hhcrC?3mBw\"><field name=\"CODE\">_ack = _ack.split('\\r\\n')[-2];</field></block></next></block></next></block></statement><value name=\"RETURN\"><block type=\"variables_get\" id=\"C1G-H5-[3X802x3YF8}L\"><field name=\"VAR\" id=\"H84.Jn^IWNh,d1wl~io_\">_ack</field></block></value></block><block type=\"procedures_defreturn\" id=\"(A|E@?[-C}p~!#R|bp_Q\" x=\"770\" y=\"50\"><mutation><arg name=\"_cmd\" varid=\"%ghx[.3}FczaO%8iaU+i\"></arg></mutation><field name=\"NAME\">sendCommand</field><statement name=\"STACK\"><block type=\"label_set_text\" id=\"ya[p-Y`(PeD61ac-cX%4\"><field name=\"COMPONENT\">ackValue</field><value name=\"TEXT\"><shadow type=\"text\" id=\"q/EIG4JHuJKuH/_e:uM1\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"text\" id=\"/5p?8yFu[mGibOqCOaCL\"><field name=\"TEXT\">XXXXXXXX</field></block></value><next><block type=\"label_set_text\" id=\"K/(#9]MlDwmt6tlTL]B2\"><field name=\"COMPONENT\">commandValue</field><value name=\"TEXT\"><shadow type=\"text\" id=\"WU9o@J-p][WA;|pNT8h*\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"l9!WD9S7XZYxg2x4%:LE\"><field name=\"VAR\" id=\"%ghx[.3}FczaO%8iaU+i\">_cmd</field></block></value><next><block type=\"text_print\" id=\"*R+*%zaD9PKa.E]{y^CT\"><value name=\"TEXT\"><block type=\"text_add\" id=\"N(KX,;7h67_Z^q:oYk8#\"><value name=\"arg0\"><shadow type=\"text\" id=\"[email protected]{XWf!\"><field name=\"TEXT\">Command: </field></shadow></value><value name=\"arg1\"><block type=\"variables_get\" id=\"/[YnlA0k]+j8E_/b@0Nq\"><field name=\"VAR\" id=\"%ghx[.3}FczaO%8iaU+i\">_cmd</field></block></value></block></value><next><block type=\"uart_write_line\" id=\",,tNazVPy_2odbU+j]3R\"><field name=\"VAR\">uart1</field><value name=\"VALUE\"><shadow type=\"text\" id=\"0F-(I_7hx@UO5%PbQWy.\"><field name=\"TEXT\"></field></shadow><block type=\"variables_get\" id=\"llP#S|Q{n@QgXJYhX*`7\"><field name=\"VAR\" id=\"%ghx[.3}FczaO%8iaU+i\">_cmd</field></block></value><next><block type=\"variables_set\" id=\"-QC@HvuI2]Bn~lW,..mg\"><field name=\"VAR\" id=\"H84.Jn^IWNh,d1wl~io_\">_ack</field><value name=\"VALUE\"><block type=\"procedures_callreturn\" id=\"8Ykxhrp0(0o?W`Tq7F=?\"><mutation name=\"readSerial\"></mutation></block></value><next><block type=\"label_set_text\" id=\"cc;Y*d(zD2~%e4T@q]p-\"><field name=\"COMPONENT\">ackValue</field><value name=\"TEXT\"><shadow type=\"text\" id=\"d4u#ndf!mUHG`z?mfU@}\"><field name=\"TEXT\">Hello M5</field></shadow><block type=\"variables_get\" id=\"blYZL@[?xL78AHKD/#{z\"><field name=\"VAR\" id=\"H84.Jn^IWNh,d1wl~io_\">_ack</field></block></value><next><block type=\"text_print\" id=\"QY`G3Cgkk+@K/{vX#Mt]\"><value name=\"TEXT\"><block type=\"text_add\" id=\"%3lygwaOCv.m{e9ascMU\"><value name=\"arg0\"><shadow type=\"text\" id=\"EGi1g|)_n!!h03OxO!Vg\"><field name=\"TEXT\">Ack: </field></shadow></value><value name=\"arg1\"><block type=\"variables_get\" id=\"n@uQYgCBo2]ZFgPV6a#@\"><field name=\"VAR\" id=\"H84.Jn^IWNh,d1wl~io_\">_ack</field></block></value></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement><value name=\"RETURN\"><block type=\"variables_get\" id=\"oIeW-yV-M@+fxOl4_uL=\"><field name=\"VAR\" id=\"H84.Jn^IWNh,d1wl~io_\">_ack</field></block></value></block><block type=\"procedures_defreturn\" id=\"{HA@0`6V:gjkM`W?f@I9\" x=\"770\" y=\"410\"><mutation statements=\"false\"><arg name=\"_payload\" varid=\"vyqwp94+!Q8q+!Tw#1jw\"></arg></mutation><field name=\"NAME\">sendMessage</field><value name=\"RETURN\"><block type=\"procedures_callreturn\" id=\"Q[`iWBW0-y`%iaI;TGTB\"><mutation name=\"sendCommand\"><arg name=\"_cmd\"></arg></mutation><value name=\"ARG0\"><block type=\"text_add\" id=\"4zBMlel:!{BjCUQ2Ajl$\"><value name=\"arg0\"><shadow type=\"text\" id=\"3rDAca44xS4~w[cRiM:^\"><field name=\"TEXT\">AT$SF=</field></shadow></value><value name=\"arg1\"><block type=\"variables_get\" id=\"@?$LNa%BAX$y*4f}JI*Q\"><field name=\"VAR\" id=\"vyqwp94+!Q8q+!Tw#1jw\">_payload</field></block></value></block></value></block></value></block><block type=\"procedures_defreturn\" id=\"K~8#c`gy(P,8dJlcS,^?\" x=\"770\" y=\"530\"><mutation><arg name=\"_hexStr\" varid=\"S}6h8WC6}^KIC;{-ubQE\"></arg><arg name=\"_bits\" varid=\"9D097F$~E66y]M|_^J/P\"></arg></mutation><field name=\"NAME\">hexStrToInt</field><statement name=\"STACK\"><block type=\"execute\" id=\"K$E$a]I(EXwwm674VbY)\"><field name=\"CODE\">_i = int(_hexStr, _bits)\n_i = -(_i & (1<<(_bits-1))) | _i</field></block></statement><value name=\"RETURN\"><block type=\"variables_get\" id=\"Ed{qfOP`Poy7p-3/_#84\"><field name=\"VAR\" id=\"$SuV:pzKrVH$N=wG:#jW\">_i</field></block></value></block>","Blockly.Remotes":[],"modules":["machine"]}