+{"version":"V2.0","versionNumber":"V2.1.2","type":"core2","components":[{"name":"screen","type":"screen","layer":0,"screenId":"builtin","screenName":"","id":"__core2_screen","createTime":1722824950443,"x":0,"y":0,"width":320,"height":240,"backgroundColor":"#222222","size":0,"isSelected":true},{"name":"title0","type":"title","layer":1,"screenId":"builtin","screenName":"","id":"u	^s3=e+JFdXqa","createTime":1722824959179,"x":0,"y":0,"color":"#ffffff","backgroundColor":"#0000FF","text":"PLUS Core2 Test","textOffset":3,"font":"Widgets.FONTS.DejaVu18","isSelected":false},{"name":"label2","type":"label","layer":2,"screenId":"builtin","screenName":"","id":"k0CYIBWhjPYMY46w","createTime":1722824988901,"x":1,"y":166,"color":"#ffffff","backgroundColor":"#222222","text":"Btn rotray:","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false},{"name":"label0","type":"label","layer":6,"screenId":"builtin","screenName":"","id":"wF1oE5pQjSBv-M!=","createTime":1722825034891,"x":1,"y":60,"color":"#ffffff","backgroundColor":"#222222","text":"Rotary:","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false},{"name":"label1","type":"label","layer":8,"screenId":"builtin","screenName":"","id":"gA+45INUXpy91CFQ","createTime":1722825166720,"x":1,"y":111,"color":"#ffffff","backgroundColor":"#222222","text":"Rotary Inc:","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false}],"resources":[{"hardware":["hardware_button","hardware_pin_button","imu","speaker","touch","mic","i2c"]},{"module":["module_plus"]}],"units":[],"hats":[],"bases":[],"i2cs":[{"id":"i2c0","portType":"A","userPort":[22,21],"freq":"100000","blockId":"uVbuK_(!IX6AeiPjU},("}],"blockly":"<variables><variable id=\"IAlSRb,6:]Hd?ORuzRVf\">btn_state</variable><variable id=\"O~~RZMn6TCH~OjP_Q$zw\">last_btn_state</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"-110\" y=\"-269\"><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_plus_init\" id=\"iC8BxS?]hdKqEtAP5h(5\"><field name=\"NAME\">plus_0</field><value name=\"ADDR\"><shadow type=\"module_plus_addr_option\" id=\"X}}/T76jozY4p]-s.*Z)\"><field name=\"VALUE\">0x62</field></shadow></value><next><block type=\"module_plus_set_encoder_value\" id=\"`pUeP,%jb#ApKaaDv5_U\"><field name=\"NAME\">plus_0</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"T}RD$Lxwt`$m{tF@0o{E\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></shadow></value></block></next></block></next></block></statement></block><block type=\"basic_on_loop\" id=\"loop_block\" deletable=\"false\" x=\"-110\" y=\"-70\"><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=\"f]#+6j:6Hcqj9-JENe`j\"><field name=\"VAR\" id=\"IAlSRb,6:]Hd?ORuzRVf\">btn_state</field><value name=\"VALUE\"><block type=\"module_plus_get_button_state\" id=\"c:N{2/-}B?[o5@U(Xl%V\"><field name=\"NAME\">plus_0</field></block></value><next><block type=\"label_set_text\" id=\"%N0HrPuq{JSTr.o-amDh\"><field name=\"NAME\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\"Ns8_)dH%+3h^D{i+.2L+\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"W3_%62t5UlD!u88hGg{9\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"rYO%/q0kpsyh$cUj,]qf\"><field name=\"TEXT\">Rotary:</field></shadow></value><value name=\"VALUE2\"><block type=\"module_plus_get_encoder_value\" id=\"dnT_E}HxCR44B.{%YU6j\"><field name=\"NAME\">plus_0</field></block></value></block></value><next><block type=\"label_set_text\" id=\"t#BXsEBZ!Q^]}PR(oAqZ\"><field name=\"NAME\">label2</field><value name=\"TEXT\"><shadow type=\"text\" id=\"Ns8_)dH%+3h^D{i+.2L+\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"{=f;]NtV:fWbV??F*hLN\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"(.3atg:xjV;6O@])2NA:\"><field name=\"TEXT\">Btn rotray:</field></shadow></value><value name=\"VALUE2\"><block type=\"variables_get\" id=\"aC;iaZ_]:`%KTCnfHkMa\"><field name=\"VAR\" id=\"IAlSRb,6:]Hd?ORuzRVf\">btn_state</field></block></value></block></value><next><block type=\"controls_if\" id=\"qR,B~qk-uXV9ai]_Vgy-\"><value name=\"IF0\"><block type=\"logic_operation\" id=\"eEL%%(Y{T%%_iWOmOBe?\"><field name=\"OP\">AND</field><value name=\"A\"><block type=\"variables_get\" id=\"_{MIP@pZ#JR-fMk`0^_]\"><field name=\"VAR\" id=\"IAlSRb,6:]Hd?ORuzRVf\">btn_state</field></block></value><value name=\"B\"><block type=\"logic_compare\" id=\"H(Bxt/dDej03U6[E8*]P\"><field name=\"OP\">NEQ</field><value name=\"A\"><block type=\"variables_get\" id=\"xBpOG}nJSm+Ry_6}S*}O\"><field name=\"VAR\" id=\"IAlSRb,6:]Hd?ORuzRVf\">btn_state</field></block></value><value name=\"B\"><block type=\"variables_get\" id=\":G8/+HKmvUZ8_/Mn84fl\"><field name=\"VAR\" id=\"O~~RZMn6TCH~OjP_Q$zw\">last_btn_state</field></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"label_set_text\" id=\"QCP]Xf2KVs-/hKH3Tx@T\"><field name=\"NAME\">label1</field><value name=\"TEXT\"><shadow type=\"text\" id=\"Ns8_)dH%+3h^D{i+.2L+\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"Hq`O=#EfcNil=wxI4nk|\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"NZxeTzhO11~4G=#{Q@(1\"><field name=\"TEXT\">Rotary Inc:</field></shadow></value><value name=\"VALUE2\"><block type=\"module_plus_get_increment_value\" id=\"-y0M~KVcsvsr(({85H0{\"><field name=\"NAME\">plus_0</field></block></value></block></value></block></statement><next><block type=\"variables_set\" id=\"~R_.(}cM,BKG.qfw,C/`\"><field name=\"VAR\" id=\"O~~RZMn6TCH~OjP_Q$zw\">last_btn_state</field><value name=\"VALUE\"><block type=\"variables_get\" id=\"*/xoR*A.*.dMsk@KgT2U\"><field name=\"VAR\" id=\"IAlSRb,6:]Hd?ORuzRVf\">btn_state</field></block></value></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":1722824950441}],"logicWhenNum":0,"customList":[]}
0 commit comments