{"version":"V2.0","versionNumber":"V2.1.2","type":"core2","components":[{"name":"screen","type":"screen","layer":0,"screenId":"builtin","screenName":"","id":"__core2_screen","createTime":1722588338152,"x":0,"y":0,"width":320,"height":240,"backgroundColor":"#222222","size":0,"isSelected":true},{"name":"title0","type":"title","layer":1,"screenId":"builtin","screenName":"","id":"xF3#wimN7zBTj$xo","createTime":1722588629669,"x":0,"y":0,"color":"#ffffff","backgroundColor":"#0000FF","text":"AIN 4-20mA Module Test","textOffset":3,"font":"Widgets.FONTS.DejaVu18","isSelected":false},{"name":"label0","type":"label","layer":2,"screenId":"builtin","screenName":"","id":"nPl5cDe^H=o0AQH1","createTime":1722588647294,"x":1,"y":60,"color":"#ffffff","backgroundColor":"#222222","text":"CH1 Current:","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false},{"name":"label1","type":"label","layer":3,"screenId":"builtin","screenName":"","id":"nW$!G2`fJOUBmFsi","createTime":1722588650250,"x":1,"y":96,"color":"#ffffff","backgroundColor":"#222222","text":"CH2 Current:","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false},{"name":"label2","type":"label","layer":4,"screenId":"builtin","screenName":"","id":"yhiGANRD2@fI@vl+","createTime":1722588654631,"x":1,"y":131,"color":"#ffffff","backgroundColor":"#222222","text":"CH3 Current:","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false},{"name":"label3","type":"label","layer":5,"screenId":"builtin","screenName":"","id":"i=W!BPhcf6PxH!bP","createTime":1722588660375,"x":1,"y":164,"color":"#ffffff","backgroundColor":"#222222","text":"CH4 Current:","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false}],"resources":[{"hardware":["hardware_button","hardware_pin_button","imu","speaker","touch","mic"]},{"module":["ain4_20ma"]}],"units":[],"hats":[],"bases":[],"i2cs":[],"blockly":"<block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"70\" 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_ain420ma_init\" id=\"C%hgN:0BWn2t,T/YYP2N\"><field name=\"NAME\">ain4_20ma_0</field><value name=\"ADDR\"><shadow type=\"math_number\" id=\"LCFj6;^S|w2f@q^arHS!\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0x55</field></shadow></value><next><block type=\"module_ain420ma_set_cal_current\" id=\"4ON2p!=yka;Y:|ER6cD,\"><field name=\"NAME\">ain4_20ma_0</field><value name=\"CHANNEL\"><shadow type=\"module_ain420ma_option\" id=\"%%e?%x-Nz-L$bU56op^H\"><field name=\"VALUE\">1</field></shadow></value><value name=\"VALUE\"><shadow type=\"math_slider\" id=\"Ue4uWT[fYZixlCf`j+ud\"><mutation max=\"20\" min=\"4\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">20</field></shadow></value><next><block type=\"module_ain420ma_set_cal_current\" id=\"MX2Y`tX6+sYL;Nk44m:N\"><field name=\"NAME\">ain4_20ma_0</field><value name=\"CHANNEL\"><shadow type=\"module_ain420ma_option\" id=\"eQ)^N/l7EH30qW%]4k98\"><field name=\"VALUE\">2</field></shadow></value><value name=\"VALUE\"><shadow type=\"math_slider\" id=\"TJpuq2tL[78P$:[7R;Y%\"><mutation max=\"20\" min=\"4\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">20</field></shadow></value><next><block type=\"module_ain420ma_set_cal_current\" id=\"q_MEYYp]@j:2^0(kPPWa\"><field name=\"NAME\">ain4_20ma_0</field><value name=\"CHANNEL\"><shadow type=\"module_ain420ma_option\" id=\"jiN[Y%~%GFOZ4/,}JDaa\"><field name=\"VALUE\">3</field></shadow></value><value name=\"VALUE\"><shadow type=\"math_slider\" id=\"=Lcn7hNw]gXb|2_lsL#/\"><mutation max=\"20\" min=\"4\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">20</field></shadow></value><next><block type=\"module_ain420ma_set_cal_current\" id=\"u#CecT734](~oY*a{?yY\"><field name=\"NAME\">ain4_20ma_0</field><value name=\"CHANNEL\"><shadow type=\"module_ain420ma_option\" id=\".S2UAV7Fd*k[_tw69hDT\"><field name=\"VALUE\">4</field></shadow></value><value name=\"VALUE\"><shadow type=\"math_slider\" id=\"
[email protected]+Mj_;XK/5DFL\"><mutation max=\"20\" min=\"4\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">20</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type=\"basic_on_loop\" id=\"loop_block\" deletable=\"false\" x=\"70\" 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=\"$7P!AC$K|7Z$Na=n7e:(\"><field name=\"NAME\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\"$%USq[P5^ytd1}1sGj3p\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"4zN;28Zq9a4r~FK%V_A(\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"SBF^w~gs5_XLTxz~/$O^\"><field name=\"TEXT\">CH1 Current:</field></shadow></value><value name=\"VALUE2\"><block type=\"module_ain420ma_get_current_value\" id=\"]ahpOd/knGnB`Aw4Sh;+\"><field name=\"NAME\">ain4_20ma_0</field><value name=\"CHANNEL\"><shadow type=\"module_ain420ma_option\" id=\"9{I7!`,CzP3K|OMG}77G\"><field name=\"VALUE\">1</field></shadow></value></block></value></block></value><next><block type=\"label_set_text\" id=\"E,!osA=dG0r,hQ@h;@8q\"><field name=\"NAME\">label1</field><value name=\"TEXT\"><shadow type=\"text\" id=\"$%USq[P5^ytd1}1sGj3p\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"4TTUnctF05=~-,bXbCl;\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"iWVAXbRw;=}s}Eo+ZoD8\"><field name=\"TEXT\">CH2 Current:</field></shadow></value><value name=\"VALUE2\"><block type=\"module_ain420ma_get_current_value\" id=\"e2|Yo_rZ)G.))7EQ-5|_\"><field name=\"NAME\">ain4_20ma_0</field><value name=\"CHANNEL\"><shadow type=\"module_ain420ma_option\" id=\"gBegL_9hD)[E.DkZYUj!\"><field name=\"VALUE\">2</field></shadow></value></block></value></block></value><next><block type=\"label_set_text\" id=\"Mu[=KX0#FGTS*8Z?u{n(\"><field name=\"NAME\">label2</field><value name=\"TEXT\"><shadow type=\"text\" id=\"$%USq[P5^ytd1}1sGj3p\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"Mm$HaP.zil}b%UvsC7s3\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"ov)D`Gn.b74Fw{y/JHO3\"><field name=\"TEXT\">CH3 Current:</field></shadow></value><value name=\"VALUE2\"><block type=\"module_ain420ma_get_current_value\" id=\"_3U{=*uQ*0IdIywaJthM\"><field name=\"NAME\">ain4_20ma_0</field><value name=\"CHANNEL\"><shadow type=\"module_ain420ma_option\" id=\"=tJi~YH[0MlVD*ztBDvj\"><field name=\"VALUE\">3</field></shadow></value></block></value></block></value><next><block type=\"label_set_text\" id=\"[-jPgxD3-R;p_6/)%]O_\"><field name=\"NAME\">label3</field><value name=\"TEXT\"><shadow type=\"text\" id=\"$%USq[P5^ytd1}1sGj3p\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"b*([P$*R-?IdVECI;TWe\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"(1Xq]u{W7?Q@CHq8ebl]\"><field name=\"TEXT\">CH4 Current:</field></shadow></value><value name=\"VALUE2\"><block type=\"module_ain420ma_get_current_value\" id=\"sK`2671a^X]F:LP%eK5W\"><field name=\"NAME\">ain4_20ma_0</field><value name=\"CHANNEL\"><shadow type=\"module_ain420ma_option\" id=\"XOr+^:01rPV4-wyU%fLc\"><field name=\"VALUE\">4</field></shadow></value></block></value></block></value></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":1722588338148}],"logicWhenNum":0,"customList":[]}
0 commit comments