+{"version":"V2.0","versionNumber":"V2.2.0","type":"atoms3","components":[{"name":"screen","type":"screen","layer":0,"screenId":"builtin","screenName":"","id":"__atoms3_screen","createTime":1737000428283,"x":0,"y":0,"width":128,"height":128,"backgroundColor":"#000000","size":0,"isSelected":true},{"name":"label_speed","type":"label","layer":1,"screenId":"builtin","screenName":"","id":"ilA`GeUDJ*#i45CO","createTime":1737000787880,"x":5,"y":27,"color":"#ffffff","backgroundColor":"#000000","text":"speed:","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false},{"name":"title_e","type":"title","layer":2,"screenId":"builtin","screenName":"","id":"tSDd9b=+Zttk^yn4","createTime":1737000789317,"x":0,"y":0,"color":"#ffffff","backgroundColor":"#0000FF","text":"Motor Ctrl","textOffset":3,"font":"Widgets.FONTS.DejaVu18","isSelected":false},{"name":"label_vol","type":"label","layer":3,"screenId":"builtin","screenName":"","id":"iT64fGl^vT#sV=8y","createTime":1737000919006,"x":5,"y":55,"color":"#ffffff","backgroundColor":"#000000","text":"vol:","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false},{"name":"label_cur","type":"label","layer":4,"screenId":"builtin","screenName":"","id":"odC_LVRfBTOYNV=u","createTime":1737000922201,"x":5,"y":75,"color":"#ffffff","backgroundColor":"#000000","text":"cur:","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false},{"name":"label_pow","type":"label","layer":5,"screenId":"builtin","screenName":"","id":"a@4v@AF7KHQM^qRR","createTime":1737000924900,"x":5,"y":95,"color":"#ffffff","backgroundColor":"#000000","text":"pow:","engine":"gfx","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false}],"resources":[{"hardware":["hardware_button","hardware_pin_button","imu","ir","i2c"]},{"base":["base_motion"]}],"units":[],"hats":[],"bases":[{"type":"base_motion","name":"motion","id":"xGaulRmedfHIeM`+","createTime":1737010686444,"bus":"i2c0","busList":[],"initBlockType":"base_motion_init","initBlockId":"_!NtF3p$XnYLb2;;zm~V"}],"i2cs":[{"id":"i2c0","portType":"base","userPort":[22,21],"freq":"100000","blockId":"CLvLJm.%v[$EdJK,F)g|"}],"blockly":"<variables><variable id=\"NthEO#lB}@MIqg2+C0`;\">speed</variable><variable id=\"T7UjYo5%;EL7ksVp|@Nl\">voltage</variable><variable id=\"dWt_]_[J-nL[G4vh?$pM\">curent</variable><variable id=\"0wGY;8D_jtYK9JL;;t*n\">last_time</variable><variable id=\"}qBj,kOG)bnVvCKnd67H\">power</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"-70\" 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=\"i2c_init\" id=\"CLvLJm.%v[$EdJK,F)g|\"><field name=\"NAME\">0</field><field name=\"FREQ\">100000</field><value name=\"SCL\"><shadow type=\"math_number\" id=\"gBt~`@,+m)s*PBl%@x)7\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">39</field></shadow></value><value name=\"SDA\"><shadow type=\"math_number\" id=\"3TUUyA_sBcdpp%#M6A=~\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">38</field></shadow></value><next><block type=\"base_motion_init\" id=\"_!NtF3p$XnYLb2;;zm~V\"><value name=\"ADDR\"><shadow type=\"base_motion_addr_option\" id=\"LhFyLN4daQ56FT:ed%GG\"><field name=\"VALUE\">0x38</field></shadow></value><next><block type=\"variables_set\" id=\"PCN`D2BpXcCyQat`tXpR\"><field name=\"VAR\" id=\"0wGY;8D_jtYK9JL;;t*n\">last_time</field><value name=\"VALUE\"><block type=\"time_get_ticks_us\" id=\"eH(WX2x@`a8%e.:%42Ow\"></block></value><next><block type=\"variables_set\" id=\"0*|$es4oGBc5W19^`$q.\"><field name=\"VAR\" id=\"NthEO#lB}@MIqg2+C0`;\">speed</field><value name=\"VALUE\"><block type=\"math_number\" id=\"~`dw_X)/:2Uh7p%,(lbO\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></block></value><next><block type=\"label_set_text\" id=\"8#-NF7sXJ*(75^0z3I:k\"><field name=\"NAME\">label_speed</field><value name=\"TEXT\"><shadow type=\"text\" id=\"gw(NqCkIIeixELyfi64z\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"eXfvUxj%#tJugc.S^L|l\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"F5n#@1wEc)JPq(hCDbbh\"><field name=\"TEXT\">speed: </field></shadow></value><value name=\"VALUE2\"><block type=\"variables_get\" id=\"1V?99=+HKEJZikap_XA.\"><field name=\"VAR\" id=\"NthEO#lB}@MIqg2+C0`;\">speed</field></block></value></block></value></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type=\"button_callback\" id=\"ta1g)={ypBLM[U-8%*$u\" x=\"430\" y=\"-50\"><field name=\"NAME\">BtnA</field><field name=\"TYPE\">WAS_CLICKED</field><statement name=\"FUNC\"><block type=\"variables_set\" id=\"~1:Wj?QLsYu]+3Oi[QK{\"><field name=\"VAR\" id=\"NthEO#lB}@MIqg2+C0`;\">speed</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"e|Z@AxZp*`Fs:M5n*(8D\"><field name=\"OP\">ADD</field><value name=\"A\"><shadow type=\"math_number\" id=\"HRAxa{[+]R{M)sClzMXb\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"8H.sD=S}P(we{ATO[6~W\"><field name=\"VAR\" id=\"NthEO#lB}@MIqg2+C0`;\">speed</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"m4UK54H,lSkGxr5HHZGt\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">20</field></shadow></value></block></value><next><block type=\"controls_if\" id=\"udwNhD#Ru|n,nZ]^}n^a\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"#|bf6-oslLh3Dzy.T?I.\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"variables_get\" id=\"Gd746%/Dm)h|nZ_9P-DC\"><field name=\"VAR\" id=\"NthEO#lB}@MIqg2+C0`;\">speed</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"rJQ`vT@-c9R,_2UICw^*\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">120</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"z8`^YeBS#]Ky?ktpkH3h\"><field name=\"VAR\" id=\"NthEO#lB}@MIqg2+C0`;\">speed</field><value name=\"VALUE\"><block type=\"math_number\" id=\":(-?x/(aL;FmFu{Brr}c\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></block></value></block></statement><next><block type=\"base_motion_set_motor_speed\" id=\"dCpj_e]YF_u|@/2*p^Sw\"><value name=\"CHANNEL\"><shadow type=\"base_motion_motor_option\" id=\"AU+^ChVZ6yb(Yoh,]sr1\"><field name=\"VALUE\">1</field></shadow></value><value name=\"VALUE\"><shadow type=\"math_slider\" id=\"OY@vJYAATwW/sl.gO?}c\"><mutation max=\"127\" min=\"-127\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow><block type=\"variables_get\" id=\"~GP[ebEp!:JAdWsmIP6s\"><field name=\"VAR\" id=\"NthEO#lB}@MIqg2+C0`;\">speed</field></block></value><next><block type=\"label_set_text\" id=\"Wtx9WjcIDs|E(HG1Oq~Y\"><field name=\"NAME\">label_speed</field><value name=\"TEXT\"><shadow type=\"text\" id=\"gw(NqCkIIeixELyfi64z\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"0jh/XH|M;7vk.I2mEve_\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"E)hhOyJTr.-F_s2Bh+%)\"><field name=\"TEXT\">speed: </field></shadow></value><value name=\"VALUE2\"><block type=\"variables_get\" id=\"9,2W]]?sLyDORP~Y^v_.\"><field name=\"VAR\" id=\"NthEO#lB}@MIqg2+C0`;\">speed</field></block></value></block></value></block></next></block></next></block></next></block></statement></block><block type=\"basic_on_loop\" id=\"loop_block\" deletable=\"false\" x=\"-70\" y=\"250\"><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=\"7fcTPv*U;Je~TH]3!6TB\"><field name=\"VAR\" id=\"T7UjYo5%;EL7ksVp|@Nl\">voltage</field><value name=\"VALUE\"><block type=\"base_motion_read_voltage\" id=\"GP1MyTWm]XtL5ANmHE7)\"></block></value><next><block type=\"variables_set\" id=\"R+E{IUGh@TQ@5b2Ym,-P\"><field name=\"VAR\" id=\"dWt_]_[J-nL[G4vh?$pM\">curent</field><value name=\"VALUE\"><block type=\"base_motion_read_current\" id=\"U#RdgI5|N?DtV3ojvTHc\"></block></value><next><block type=\"variables_set\" id=\"!b15!k%N#AmUzrd_nl{G\"><field name=\"VAR\" id=\"}qBj,kOG)bnVvCKnd67H\">power</field><value name=\"VALUE\"><block type=\"base_motion_read_power\" id=\"z(?+=shb[}F:{t-hV?EC\"></block></value><next><block type=\"label_set_text\" id=\"P#(PQqydg2JK*eTw16=h\"><field name=\"NAME\">label_vol</field><value name=\"TEXT\"><shadow type=\"text\" id=\"gw(NqCkIIeixELyfi64z\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"G^UwpP4j@YRKHc3cV~,-\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"v`?RQ,:a-qPP|]a8=3SQ\"><field name=\"TEXT\">vol: </field></shadow></value><value name=\"VALUE2\"><block type=\"variables_get\" id=\"ziL0ao%=TWS!abt*gK6P\"><field name=\"VAR\" id=\"T7UjYo5%;EL7ksVp|@Nl\">voltage</field></block></value></block></value><next><block type=\"label_set_text\" id=\"CLPiscH6u2Jfcsmxh3#I\"><field name=\"NAME\">label_cur</field><value name=\"TEXT\"><shadow type=\"text\" id=\"gw(NqCkIIeixELyfi64z\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"jCh$Ov9Pu#jtQV*x3g?a\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"`fKmNa66X.mz~aOQ)a)P\"><field name=\"TEXT\">cur: </field></shadow></value><value name=\"VALUE2\"><block type=\"variables_get\" id=\"T/q=vE$#E29-_m[Y{OW$\"><field name=\"VAR\" id=\"dWt_]_[J-nL[G4vh?$pM\">curent</field></block></value></block></value><next><block type=\"label_set_text\" id=\"QjZy8c[pyy6l|Ht(odJI\"><field name=\"NAME\">label_pow</field><value name=\"TEXT\"><shadow type=\"text\" id=\"gw(NqCkIIeixELyfi64z\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"]yx%lp01~]=fbQtrXJj0\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"s@al2jtQ~#HIIP7:k+,*\"><field name=\"TEXT\">pow: </field></shadow></value><value name=\"VALUE2\"><block type=\"variables_get\" id=\"%@#C,vj/d2@,r2hO=Lr2\"><field name=\"VAR\" id=\"}qBj,kOG)bnVvCKnd67H\">power</field></block></value></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block>","screen":[{"simulationName":"Built-in","type":"builtin","width":128,"height":128,"scale":1.3,"screenName":"","blockId":"","screenColorType":0,"id":"builtin","createTime":1737000428281}],"logicWhenNum":0,"customList":[]}
0 commit comments