{"version":"V2.0","versionNumber":"V2.1.5","type":"fire","components":[{"name":"screen","type":"screen","layer":0,"screenId":"builtin","screenName":"","id":"__fire_screen","createTime":1728966513455,"x":0,"y":0,"width":320,"height":240,"backgroundColor":"#222222","size":0,"isSelected":true},{"name":"title0","type":"title","layer":1,"screenId":"builtin","screenName":"","id":"vAP0SgBJ267`=QF6","createTime":1728972403070,"x":0,"y":0,"color":"#ffffff","backgroundColor":"#0000FF","text":"4In8OutModule Example","textOffset":3,"font":"Widgets.FONTS.DejaVu18","isSelected":false},{"name":"label0","type":"label","layer":2,"screenId":"builtin","screenName":"","id":"wrY8x+1*ccWwBp`z","createTime":1728972492070,"x":1,"y":60,"color":"#ffffff","backgroundColor":"#222222","text":"Switch i Status:","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false},{"name":"label1","type":"label","layer":3,"screenId":"builtin","screenName":"","id":"o@#3GM&ymvC9&G$m","createTime":1728972496269,"x":1,"y":118,"color":"#ffffff","backgroundColor":"#222222","text":"Load i Status:","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false},{"name":"label2","type":"label","layer":4,"screenId":"builtin","screenName":"","id":"b1JU3goDbXpev98o","createTime":1728972548950,"x":1,"y":178,"color":"#ffffff","backgroundColor":"#222222","text":"I2C Addr:","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false},{"name":"label3","type":"label","layer":5,"screenId":"builtin","screenName":"","id":"aPCdX0PddAC6TCyF","createTime":1728972552698,"x":176,"y":178,"color":"#ffffff","backgroundColor":"#222222","text":"FW Version:","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false}],"resources":[{"hardware":["hardware_button","hardware_pin_button","imu","rgb","speaker"]},{"module":["module_4in8out"]}],"units":[],"hats":[],"bases":[],"i2cs":[],"blockly":"<variables><variable id=\"|$DZdm.vh8}hr/}W^B2v\">load_num</variable><variable id=\"Nn(Lb--7.W/)p2dIGLZx\">switch_num</variable><variable id=\"n#Xjnplrg,:}Xa%a.){8\">state</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"50\" y=\"-10\"><mutation isBegin=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_begin\" id=\"system_m5_begin\"><next><block type=\"module_4in8out_init\" id=\"+%5!bso|cR~BDK#S}X!N\"><field name=\"NAME\">module_4in8out_0</field><value name=\"ADDR\"><shadow type=\"math_number\" id=\"-8_B!=.HKJVRW]R?3qR:\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0x45</field></shadow></value><next><block type=\"label_set_text\" id=\"3/aAGy?8ZDoTzJ`7[,4F\"><field name=\"NAME\">label2</field><value name=\"TEXT\"><shadow type=\"text\" id=\",@t|n*cOi[o;#v8Tre:c\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"`]AG_[BNO.Tx7i{WZ/*w\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"j:_ogu^XHfp,kc1DpS@%\"><field name=\"TEXT\">I2C Addr:</field></shadow></value><value name=\"VALUE2\"><block type=\"module_4in8out_get_i2c_address\" id=\"rBai}v1MMH5Es%D:*{UX\"><field name=\"NAME\">module_4in8out_0</field></block></value></block></value><next><block type=\"label_set_text\" id=\"`a9A?)L[e:0E.c(nIHpa\"><field name=\"NAME\">label3</field><value name=\"TEXT\"><shadow type=\"text\" id=\"o?tZnq=RUQ2eo.;]VL/g\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"7Ec9B;mIYIG}BntYLf#A\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"A`abVdw)!MA1oLkzT{li\"><field name=\"TEXT\">FW Version:</field></shadow></value><value name=\"VALUE2\"><block type=\"module_4in8out_get_firmware_version\" id=\"aP(Ee69K_|qy{Zn|#6V6\"><field name=\"NAME\">module_4in8out_0</field></block></value></block></value><next><block type=\"variables_set\" id=\"KIXXQ-TK5%+@9V:D;qdU\"><field name=\"VAR\" id=\"|$DZdm.vh8}hr/}W^B2v\">load_num</field><value name=\"VALUE\"><block type=\"math_number\" id=\"Jn]YTi59]bH-/b$u6E;0\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></block></value><next><block type=\"variables_set\" id=\"6IkJD,!H{?}NG;UI3Fp{\"><field name=\"VAR\" id=\"Nn(Lb--7.W/)p2dIGLZx\">switch_num</field><value name=\"VALUE\"><block type=\"math_number\" id=\";Pr.:UKX)=`.Hg(q]XJ5\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></block></value><next><block type=\"variables_set\" id=\"zGAE4Z)Es8t8$WNf`|2#\"><field name=\"VAR\" id=\"n#Xjnplrg,:}Xa%a.){8\">state</field><value name=\"VALUE\"><block type=\"math_number\" id=\"S.tS_J|nOhl(0yk~t}Z8\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type=\"basic_on_loop\" id=\"loop_block\" deletable=\"false\" x=\"50\" y=\"330\"><mutation isUpdate=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_update\" id=\"system_m5_update\"><next><block type=\"variables_set\" id=\"mvS99@GI_TOLX{rO*Ayr\"><field name=\"VAR\" id=\"|$DZdm.vh8}hr/}W^B2v\">load_num</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"Z6k5$!rd,Wa!8X]NXQG.\"><field name=\"OP\">ADD</field><value name=\"A\"><shadow type=\"math_number\" id=\"gf@BNne8!UdSk27#GFDc\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"j^6mcx}?zH`jZR`ofZmk\"><field name=\"VAR\" id=\"|$DZdm.vh8}hr/}W^B2v\">load_num</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"ud5+1[re@93s-%8~5|3h\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow></value></block></value><next><block type=\"variables_set\" id=\"Tj;zMe{]vo0_Xf0$`?#g\"><field name=\"VAR\" id=\"Nn(Lb--7.W/)p2dIGLZx\">switch_num</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"M@}1#y?1p@B+aio0`%~O\"><field name=\"OP\">ADD</field><value name=\"A\"><shadow type=\"math_number\" id=\"gf@BNne8!UdSk27#GFDc\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"5Nyi?ZO$7GSi_aYQt~JJ\"><field name=\"VAR\" id=\"Nn(Lb--7.W/)p2dIGLZx\">switch_num</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"OhxJHM($eawSlN/3~3:m\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow></value></block></value><next><block type=\"controls_if\" id=\"_Z5:u`[T]{O]%w$I[2{T\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"g;e0{B:]LA~V}h2fGkca\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"variables_get\" id=\"S?QPfIR2mM!)JW!0I}xy\"><field name=\"VAR\" id=\"|$DZdm.vh8}hr/}W^B2v\">load_num</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"NFUMT(lIhODUR)CN}2oc\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">8</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"O?wh|d3:X$`88tc2S:Y$\"><field name=\"VAR\" id=\"|$DZdm.vh8}hr/}W^B2v\">load_num</field><value name=\"VALUE\"><block type=\"math_number\" id=\"T!E0*jCIszzpIQa=#[9N\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></block></value><next><block type=\"variables_set\" id=\"=:=8!}S7@`{@d7qy*RF7\"><field name=\"VAR\" id=\"n#Xjnplrg,:}Xa%a.){8\">state</field><value name=\"VALUE\"><block type=\"logic_negate\" id=\"Xvh0#GQ%^K9_tXS?Aux)\"><value name=\"BOOL\"><block type=\"variables_get\" id=\"52{o]DvsS|(|%*idv2oC\"><field name=\"VAR\" id=\"n#Xjnplrg,:}Xa%a.){8\">state</field></block></value></block></value></block></next></block></statement><next><block type=\"controls_if\" id=\"I]PE)jt}Fs!zNtsZWvL^\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"(0nu5:W;~IBaE0gP:pQU\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"variables_get\" id=\"E?f~m$Axu]}4tv1w{kQ6\"><field name=\"VAR\" id=\"Nn(Lb--7.W/)p2dIGLZx\">switch_num</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"oKroT1?Ye1Fgx7q|SG98\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">4</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"-7xcafBU^=}y1.E0Hf|g\"><field name=\"VAR\" id=\"Nn(Lb--7.W/)p2dIGLZx\">switch_num</field><value name=\"VALUE\"><block type=\"math_number\" id=\"eZV}N5o-V.iAGvn{sYy4\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></block></value></block></statement><next><block type=\"module_4in8out_set_load_state\" id=\"
[email protected]@xp/O12uO3xL/\"><field name=\"NAME\">module_4in8out_0</field><value name=\"CHANNEL\"><shadow type=\"module_4in8out_output_channel_option\" id=\"E/e6pZ]W=eYtomgCr]$G\"><field name=\"VALUE\">1</field></shadow><block type=\"variables_get\" id=\"iDdsw+je$d0fdk{Pe%WQ\"><field name=\"VAR\" id=\"|$DZdm.vh8}hr/}W^B2v\">load_num</field></block></value><value name=\"STATE\"><shadow type=\"module_4in8out_value_option\" id=\"-V3wwL5^P+Z[En!J[QdW\"><field name=\"VALUE\">1</field></shadow><block type=\"variables_get\" id=\"$0t2_{J_0Z3%0O(ivnqp\"><field name=\"VAR\" id=\"n#Xjnplrg,:}Xa%a.){8\">state</field></block></value><next><block type=\"label_set_text\" id=\"#Ss:x$!LJ(y@OkH)dO_+\"><field name=\"NAME\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\"#hAZusQa^ka,31W-I}fy\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"M^Li`SDXapQ(PzqiFx|f\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"Ql=o!ipj$=IF/GS5c^3L\"><field name=\"TEXT\">Switch </field></shadow></value><value name=\"VALUE2\"><block type=\"text_add_str\" id=\"vfGM=1DFJKVekYa@Qmlx\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"Jd=T9p},o]ro;~E1lmV@\"><field name=\"TEXT\"> Status:</field></shadow><block type=\"variables_get\" id=\"Atm*DJ:o:$,hKUSh[6K.\"><field name=\"VAR\" id=\"Nn(Lb--7.W/)p2dIGLZx\">switch_num</field></block></value><value name=\"VALUE2\"><block type=\"text_add_str\" id=\"WOk)_V96$1VOaq/sf2gU\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"gr`af~fa]M*(4LFdgtLf\"><field name=\"TEXT\"> Status:</field></shadow></value><value name=\"VALUE2\"><block type=\"module_4in8out_get_switch_value\" id=\"ZK^SU,]O0biX`jI#,xS^\"><field name=\"NAME\">module_4in8out_0</field><value name=\"CHANNEL\"><shadow type=\"module_4in8out_input_channel_option\" id=\"WVmn0wVOT5A6^%ClCV;,\"><field name=\"VALUE\">1</field></shadow><block type=\"variables_get\" id=\"sWF0bjM:4C5*Z4xJQ#o(\"><field name=\"VAR\" id=\"Nn(Lb--7.W/)p2dIGLZx\">switch_num</field></block></value></block></value></block></value></block></value></block></value><next><block type=\"label_set_text\" id=\"CaF61(|#_zbAT;*mP09M\"><field name=\"NAME\">label1</field><value name=\"TEXT\"><shadow type=\"text\" id=\"#hAZusQa^ka,31W-I}fy\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"qD{aau+7!~-@3$x$1/HT\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"1P.ew{S]FBNXL)Fjmh0{\"><field name=\"TEXT\">Load </field></shadow></value><value name=\"VALUE2\"><block type=\"text_add_str\" id=\"~YK-Y(F6~)#^*8LFAe6F\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"Jd=T9p},o]ro;~E1lmV@\"><field name=\"TEXT\"> Status:</field></shadow><block type=\"variables_get\" id=\"pVO{FXSb!?TFT!UmP$qg\"><field name=\"VAR\" id=\"|$DZdm.vh8}hr/}W^B2v\">load_num</field></block></value><value name=\"VALUE2\"><block type=\"text_add_str\" id=\"~QKB)e2N/}ec^~+qk3O4\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"QyJi~R0ZQT#/S$sw|4eh\"><field name=\"TEXT\"> Status:</field></shadow></value><value name=\"VALUE2\"><block type=\"module_4in8out_get_load_state\" id=\"mRlJS_6x{JCcSDH:FW5J\"><field name=\"NAME\">module_4in8out_0</field><value name=\"CHANNEL\"><shadow type=\"module_4in8out_output_channel_option\" id=\"-^y+j9X5|(:u;?/zQu_t\"><field name=\"VALUE\">1</field></shadow><block type=\"variables_get\" id=\"EFwQe7{)Yh*fUb:@7u,9\"><field name=\"VAR\" id=\"Nn(Lb--7.W/)p2dIGLZx\">switch_num</field></block></value></block></value></block></value></block></value></block></value><next><block type=\"time_sleep_second\" id=\"s/HSoiUnQ-;VSx85|*N]\"><value name=\"SECOND\"><shadow type=\"math_number\" id=\"c`04-QxgZ(:t~A~MyG[(\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><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>","screen":[{"simulationName":"Built-in","type":"builtin","width":320,"height":240,"scale":0.78,"screenName":"","blockId":"","screenColorType":0,"id":"builtin","createTime":1728966513453}],"logicWhenNum":0,"customList":[]}
0 commit comments