+{"version":"V2.0","versionNumber":"V2.1.8","type":"core2","components":[{"name":"screen","type":"screen","layer":0,"screenId":"builtin","screenName":"","id":"__core2_screen","createTime":1724406992350,"x":0,"y":0,"width":320,"height":240,"backgroundColor":"#222222","size":0,"isSelected":true},{"name":"Title","type":"title","layer":1,"screenId":"builtin","screenName":"","id":"p3!W#cUbuB%Kec#I","createTime":1724407010661,"x":0,"y":0,"color":"#ffffff","backgroundColor":"#0000FF","text":"DMX512Module Send example","textOffset":3,"font":"Widgets.FONTS.DejaVu18","isSelected":false},{"name":"label0","type":"label","layer":2,"screenId":"builtin","screenName":"","id":"zq5uuS9LZkSgjtui","createTime":1724407155074,"x":2,"y":76,"color":"#ffffff","backgroundColor":"#222222","text":"Not initialized","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false},{"name":"label1","type":"label","layer":1,"screenId":"builtin","screenName":"","id":"z7Va833v6g%Rd3GJ","createTime":1724409886887,"x":2,"y":129,"color":"#ffffff","backgroundColor":"#222222","text":"Not Sent","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false}],"resources":[{"hardware":["hardware_button","hardware_pin_button","imu","speaker","touch","mic"]},{"module":["module_dmx"]}],"units":[],"hats":[],"bases":[],"i2cs":[],"blockly":"<variables><variable id=\"o5|Pm{Z%OaWc^Q|=8b?1\">ch_data</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"50\" y=\"50\"><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_dmx_init\" id=\"a--c#RPHSgLP/)QU*cA1\"><field name=\"NAME\">module_dmx_0</field><value name=\"UART\"><shadow type=\"module_dmx_id_option\" id=\"5e(m|i^@{88D/VdqOL.W\"><field name=\"VALUE\">2</field></shadow></value><value name=\"MODE\"><shadow type=\"module_dmx_mode_option\" id=\"W-WTcxACOu};]l)zhKD3\"><field name=\"VALUE\">1</field></shadow></value><next><block type=\"variables_set\" id=\"Ht,~[S*dQ#khDqg{FA1a\"><field name=\"VAR\" id=\"o5|Pm{Z%OaWc^Q|=8b?1\">ch_data</field><value name=\"VALUE\"><block type=\"math_number\" id=\"T9Gm0HwZZ3S2Ezl$}BEU\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></block></value><next><block type=\"label_set_text\" id=\"*2_A}1U8B*j`4ijw}6_e\"><field name=\"NAME\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\"0;O;7cnDP*?o7{:ljkc9\"><field name=\"TEXT\">Initialized</field></shadow></value></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=\"label_set_text\" id=\"8ZXT,]`!.F$s+O)pbT.%\"><field name=\"NAME\">label1</field><value name=\"TEXT\"><shadow type=\"text\" id=\":nD@rGt+J!RqTI+PMw]G\"><field name=\"TEXT\">Not Sent</field></shadow></value><next><block type=\"variables_set\" id=\"zB^8Kra#pp,AP(#@`Bb|\"><field name=\"VAR\" id=\"o5|Pm{Z%OaWc^Q|=8b?1\">ch_data</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"M6?D.z7w^[k/S%q)U09u\"><field name=\"OP\">ADD</field><value name=\"A\"><shadow type=\"math_number\" id=\"u-eq$cWjG`(33,F.8{H)\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"MF{Mh#8{+uj7_b^T5N~=\"><field name=\"VAR\" id=\"o5|Pm{Z%OaWc^Q|=8b?1\">ch_data</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"dv*NHuF}z2pZadWbBg;8\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow></value></block></value><next><block type=\"controls_if\" id=\"aKv.#R3!t3/;fo|=lmU2\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"Bv[r$CL%;,%H3PQJIU)Y\"><field name=\"OP\">GTE</field><value name=\"A\"><block type=\"variables_get\" id=\"$@$8$^K;Lp?n/yVga`Oe\"><field name=\"VAR\" id=\"o5|Pm{Z%OaWc^Q|=8b?1\">ch_data</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"O^%@.([H!4?0Mh^P$D|3\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">255</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"g0n=Um]Jyy-9f1{oz$YM\"><field name=\"VAR\" id=\"o5|Pm{Z%OaWc^Q|=8b?1\">ch_data</field><value name=\"VALUE\"><block type=\"math_number\" id=\"bJtaQs.PYR#Gy;8dEvr_\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></block></value></block></statement><next><block type=\"module_dmx_write_data\" id=\"r{o7=vXUzFv3xc]HAt7b\"><field name=\"NAME\">module_dmx_0</field><value name=\"DATA\"><shadow type=\"math_slider\" id=\"Qk|GONv1~CAUkk(]TJ_S\"><mutation max=\"255\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow><block type=\"variables_get\" id=\",FCCsQ~DR}rFD?m9WFIj\"><field name=\"VAR\" id=\"o5|Pm{Z%OaWc^Q|=8b?1\">ch_data</field></block></value><value name=\"CHANNEL\"><shadow type=\"math_slider\" id=\"kM=S[]PD,)@*=3%;$7@{\"><mutation max=\"512\" min=\"1\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">1</field></shadow></value><next><block type=\"module_dmx_write_data\" id=\"0Lqb8fE@v$+ht{($D1M5\"><field name=\"NAME\">module_dmx_0</field><value name=\"DATA\"><shadow type=\"math_slider\" id=\"Qk|GONv1~CAUkk(]TJ_S\"><mutation max=\"255\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow><block type=\"variables_get\" id=\"[N1T$PE3HzRzoCj@7nHS\"><field name=\"VAR\" id=\"o5|Pm{Z%OaWc^Q|=8b?1\">ch_data</field></block></value><value name=\"CHANNEL\"><shadow type=\"math_slider\" id=\"r)F;,1xlQ(z`dg=DbBLg\"><mutation max=\"512\" min=\"1\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">2</field></shadow></value><next><block type=\"module_dmx_write_data\" id=\"L+QrNuUhH)~8bs{YR|99\"><field name=\"NAME\">module_dmx_0</field><value name=\"DATA\"><shadow type=\"math_slider\" id=\"Qk|GONv1~CAUkk(]TJ_S\"><mutation max=\"255\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow><block type=\"variables_get\" id=\"AM0Ayzlit|t%Mx,[Mdzz\"><field name=\"VAR\" id=\"o5|Pm{Z%OaWc^Q|=8b?1\">ch_data</field></block></value><value name=\"CHANNEL\"><shadow type=\"math_slider\" id=\"0aDUz,MSFv8m{OnBl`Vp\"><mutation max=\"512\" min=\"1\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">3</field></shadow></value><next><block type=\"label_set_text\" id=\"a8;-HP2}/+,z7JhyBd#z\"><field name=\"NAME\">label1</field><value name=\"TEXT\"><shadow type=\"text\" id=\"!if$bnl=:Cq-G7t=.,Yu\"><field name=\"TEXT\">Sent</field></shadow></value><next><block type=\"time_sleep_second\" id=\"[Y$qb(u^|}BmB5wO:]4M\"><value name=\"SECOND\"><shadow type=\"math_number\" id=\"+s*-S9_2lC6g4:ByAJJu\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">0.7</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":1724406992341}],"logicWhenNum":0,"customList":[]}
0 commit comments