Files
2025-02-21 15:28:39 +08:00

1 line
7.7 KiB
Plaintext

{"version":"V2.0","versionNumber":"V2.2.1","type":"fire","components":[{"name":"screen","type":"screen","layer":0,"screenId":"builtin","screenName":"","id":"__fire_screen","createTime":1739843623137,"x":0,"y":0,"width":320,"height":240,"backgroundColor":"#222222","size":0,"isSelected":true},{"name":"title0","type":"title","layer":1,"screenId":"builtin","screenName":"","id":"hjKc%ViHl9qe9gC=","createTime":1739843645399,"x":0,"y":0,"color":"#ffffff","backgroundColor":"#0000FF","text":"Bala2 Encoder Read","textOffset":3,"font":"Widgets.FONTS.DejaVu24","isSelected":false},{"name":"label_enc1","type":"label","layer":2,"screenId":"builtin","screenName":"","id":"gCY6zOR&Zy@Wkb!e","createTime":1739843666661,"x":54,"y":85,"color":"#ffffff","backgroundColor":"#222222","text":"Enc1","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false,"width":46,"height":21},{"name":"label_enc2","type":"label","layer":3,"screenId":"builtin","screenName":"","id":"zW1-p`&2p&_p@8@p","createTime":1739843668564,"x":208,"y":85,"color":"#ffffff","backgroundColor":"#222222","text":"Enc2","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false,"width":46,"height":21},{"name":"label_enc1_val","type":"label","layer":4,"screenId":"builtin","screenName":"","id":"bnzaZ9e6kMR0!+ie","createTime":1739843669968,"x":50,"y":125,"color":"#ffffff","backgroundColor":"#222222","text":"0","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false,"width":12,"height":21},{"name":"label_enc2_val","type":"label","layer":5,"screenId":"builtin","screenName":"","id":"ffHCxfg&qG`Y$&ri","createTime":1739843671341,"x":202,"y":125,"color":"#ffffff","backgroundColor":"#222222","text":"0","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false,"width":58,"height":21}],"resources":[{"hardware":["hardware_button","hardware_pin_button","imu","rgb","speaker"]},{"module":["module_bala2"]}],"units":[],"hats":[],"bases":[],"i2cs":[],"blockly":"<variables><variable id=\")2?U5b?j)s65_s~q;rwA\">last_time</variable><variable id=\"@?cQBBz,LZ{Z@7hiN4kB\">enc_value</variable><variable id=\"ua=i=(qr8^Fzi4W$rl-Z\">enc1</variable><variable id=\"{Ea*V49(z+yPQA7+HY)r\">enc2</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"410\" y=\"70\"><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_bala2_init\" id=\"E?b0{i6P{-eb7T!Fh-R-\"><field name=\"NAME\">module_bala2_0</field><value name=\"VALUE\"><shadow type=\"math_slider\" id=\"kTB/,2,b9@bm7aA4`Sa~\"><mutation max=\"3\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow></value><next><block type=\"module_bala2_set_encoder_value\" id=\"97f_|K8maaCU/$||e@2{\"><field name=\"NAME\">module_bala2_0</field><value name=\"LEFT\"><shadow type=\"math_number\" id=\":W8C43X(-(BM[l#z-`1k\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></shadow></value><value name=\"RIGHT\"><shadow type=\"math_number\" id=\"[vgT!%@Q6,Iy25Ymbrli\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></shadow></value><next><block type=\"variables_set\" id=\"AgnKEcme_?i:%3Sgnu.d\"><field name=\"VAR\" id=\")2?U5b?j)s65_s~q;rwA\">last_time</field><value name=\"VALUE\"><block type=\"time_get_ticks_ms\" id=\"C`v6FE%rqnk-fl*Q4*DD\"></block></value></block></next></block></next></block></next></block></statement></block><block type=\"basic_on_loop\" id=\"loop_block\" deletable=\"false\" x=\"430\" 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=\"controls_if\" id=\";*)173#v}8=^X5%*uUGL\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"}=Zxy~_99@hd(.9[JrBl\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"time_get_ticks_diff\" id=\"iaLFvC_X(gdoHJqv)n|l\"><value name=\"TICKS1\"><shadow type=\"math_number\" id=\".IcG8XtY^xfHVlj~4rJ7\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"time_get_ticks_ms\" id=\"`#C6GoTab[UNchqwif4#\"></block></value><value name=\"TICKS2\"><shadow type=\"math_number\" id=\"KEw0+M7@YSx#j2p6/XKo\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"4)`*%5%42`6a4YQ=tF?/\"><field name=\"VAR\" id=\")2?U5b?j)s65_s~q;rwA\">last_time</field></block></value></block></value><value name=\"B\"><block type=\"math_number\" id=\"rm2oXv7`wF$/X;E}lMGV\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">100</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"?RX#U]pDep|!f6Ni^Owd\"><field name=\"VAR\" id=\")2?U5b?j)s65_s~q;rwA\">last_time</field><value name=\"VALUE\"><block type=\"time_get_ticks_ms\" id=\"h5j*Sg/pKa^;[I2}c#;%\"></block></value><next><block type=\"variables_set\" id=\"MQ]_b1|}Bwj%#)%2*Dmh\"><field name=\"VAR\" id=\"@?cQBBz,LZ{Z@7hiN4kB\">enc_value</field><value name=\"VALUE\"><block type=\"module_bala2_get_encoder_value\" id=\"vZEb~)K~U0Aw-hp}--@=\"><field name=\"NAME\">module_bala2_0</field></block></value><next><block type=\"variables_set\" id=\"Evj]8o5]KFHB$m@@:xVE\"><field name=\"VAR\" id=\"ua=i=(qr8^Fzi4W$rl-Z\">enc1</field><value name=\"VALUE\"><block type=\"lists_getIndex\" id=\":nWyLJz:?vQ8;=64fO55\"><mutation statement=\"false\" at=\"true\"></mutation><field name=\"MODE\">GET</field><field name=\"WHERE\">FROM_START</field><value name=\"VALUE\"><block type=\"variables_get\" id=\"iQE3ZcVi9ih@*=[qhe^Z\"><field name=\"VAR\" id=\"@?cQBBz,LZ{Z@7hiN4kB\">enc_value</field></block></value><value name=\"AT\"><block type=\"math_number\" id=\"ZUYUbm/^x)mlv2z;sWSN\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></block></value></block></value><next><block type=\"variables_set\" id=\"yXp$UeE_n0s.*EeWYe5O\"><field name=\"VAR\" id=\"{Ea*V49(z+yPQA7+HY)r\">enc2</field><value name=\"VALUE\"><block type=\"lists_getIndex\" id=\"I4P:1hDv#[-PeQWCdVCX\"><mutation statement=\"false\" at=\"true\"></mutation><field name=\"MODE\">GET</field><field name=\"WHERE\">FROM_START</field><value name=\"VALUE\"><block type=\"variables_get\" id=\"X*+JEjjt5HM~Hae^$Rp+\"><field name=\"VAR\" id=\"@?cQBBz,LZ{Z@7hiN4kB\">enc_value</field></block></value><value name=\"AT\"><block type=\"math_number\" id=\"2H3RpD[.lrKHDLVwDPBK\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">2</field></block></value></block></value><next><block type=\"label_set_text\" id=\"`;g7cvFt3yDzR-{NF`@$\"><field name=\"NAME\">label_enc1_val</field><value name=\"TEXT\"><shadow type=\"text\" id=\"/WMS:*xn74Rf@K{Rmc{%\"><field name=\"TEXT\">Label</field></shadow><block type=\"variables_get\" id=\"WUq,jz_q]r(W$kc(RHD`\"><field name=\"VAR\" id=\"ua=i=(qr8^Fzi4W$rl-Z\">enc1</field></block></value><next><block type=\"label_set_text\" id=\"W{WEK7Rj#p$Hc/.E6*iP\"><field name=\"NAME\">label_enc2_val</field><value name=\"TEXT\"><shadow type=\"text\" id=\"S?22?VDBJh`!+sp=NMe[\"><field name=\"TEXT\">Label</field></shadow><block type=\"variables_get\" id=\"LylrtMC^;vC2plki}[5~\"><field name=\"VAR\" id=\"{Ea*V49(z+yPQA7+HY)r\">enc2</field></block></value></block></next></block></next></block></next></block></next></block></next></block></statement></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":1739843623136}],"logicWhenNum":0,"customList":[]}