You've already forked uiflow-micropython
mirror of
https://github.com/m5stack/uiflow-micropython.git
synced 2026-05-20 10:39:27 -07:00
e099fc94c2
Signed-off-by: hlym123 <lwylwt@qq.com>
1 line
6.6 KiB
Plaintext
1 line
6.6 KiB
Plaintext
{"version":"V2.0","versionNumber":"V2.4.4","type":"stack-chan","components":[{"name":"page0","type":"lvgl_page","layer":0,"screenId":"builtin","screenName":"","id":"m5t7o7SFR4vmx`#O","createTime":1776329679087,"backgroundColor":"#000000","isLVGL":true,"isSelected":true},{"name":"label_title","type":"lvgl_label","layer":2,"screenId":"builtin","screenName":"","id":"z`6fHQV93n^+iONk","createTime":1776331872818,"x":34,"y":10,"color":"#0dc9f4","backgroundColor":"#000000","bg_opacity":0,"text":"Servo Read Example","font":"lv.font_montserrat_24","pageId":"m5t7o7SFR4vmx`#O","isLVGL":true,"isSelected":false},{"name":"label_agnle_x","type":"lvgl_label","layer":2,"screenId":"builtin","screenName":"","id":"jy8JEP@PJfZGxvf2","createTime":1776331872818,"x":10,"y":80,"color":"#0dc9f4","backgroundColor":"#000000","bg_opacity":0,"text":"X-Axis Servo Angle:","font":"lv.font_montserrat_24","pageId":"m5t7o7SFR4vmx`#O","isLVGL":true,"isSelected":false},{"name":"label_angle_y","type":"lvgl_label","layer":3,"screenId":"builtin","screenName":"","id":"rtpaIg9MRo2PMYZv","createTime":1776331872818,"x":10,"y":125,"color":"#0dc9f4","backgroundColor":"#000000","bg_opacity":0,"text":"Y-Axis Servo Angle:","font":"lv.font_montserrat_24","pageId":"m5t7o7SFR4vmx`#O","isLVGL":true,"isSelected":false}],"resources":[{"hardware":["hardware_button","hardware_pin_button","imu","rgb","speaker","touch","als","ir","mic","touchpad","hardware_servo","sdcard"]}],"units":[],"hats":[],"caps":[],"chains":[],"bases":[],"plcmodules":[],"i2cs":[],"chainBus":[],"blockly":"<variables><variable id=\"9nNCw-{!#H)1OIG!b(OA\">last_time</variable><variable id=\"OIlQiFBwJeW,orCmqzRl\">x_angle</variable><variable id=\"89Mt1=l^Xm$_;O}g5nDg\">y_angle</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=\"uLf~%j`#UgIpq%=!9m,l\"><next><block type=\"system_stackchan_init\" id=\"Qr]444[pU9X=]oY9zz%2\"><field name=\"I2C\">1</field><field name=\"UART\">1</field><next><block type=\"lvgl_page_screen_load\" id=\"j[Z745/S;bz$(x)U}wQ3\"><field name=\"NAME\">page0</field><next><block type=\"hardware_servo_set_servo_power\" id=\":~]:@fY7}Nr~$LE@PRY`\"><value name=\"VALUE\"><shadow type=\"hardware_servo_power_option\" id=\"20P?(}9/.w{N@sEJgW=B\"><field name=\"VALUE\">True</field></shadow></value><next><block type=\"hardware_servo_set_servo_torque\" id=\"{qg4yaQL+iBMb2Xt3Yn$\"><field name=\"ID\">SERVO_ID_X</field><value name=\"VALUE\"><shadow type=\"hardware_servo_power_option\" id=\"[bGZ;Bk}!*SOFy!j}UBW\"><field name=\"VALUE\">False</field></shadow></value><next><block type=\"hardware_servo_set_servo_torque\" id=\"mRH3t_LdX(EDc#;so(S:\"><field name=\"ID\">SERVO_ID_Y</field><value name=\"VALUE\"><shadow type=\"hardware_servo_power_option\" id=\"d#]}k{1^=+e8k}`B#)$Z\"><field name=\"VALUE\">False</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=\"50\" y=\"370\"><mutation isUpdate=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_update\" id=\"y^^TUf+I.!w*V(3PhI`]\"><next><block type=\"controls_if\" id=\"Lv%Fp9bGY:JFD2J^h0uI\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"^I-nMrHM=ejcM~=~M`Us\"><field name=\"OP\">GTE</field><value name=\"A\"><block type=\"time_get_ticks_diff\" id=\"Snst`2~wj=$5Im~OQ/Er\"><value name=\"TICKS1\"><shadow type=\"math_number\" id=\"#OkwBPJ0`NyHJWvp2;k4\" disabled=\"true\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"time_get_ticks_ms\" id=\"),.nOE!+(d^z)eASI?_d\"></block></value><value name=\"TICKS2\"><shadow type=\"math_number\" id=\"E9vOOc+q[Q,/vmrcH!rL\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"+oXlKkCKKrh72d.+#D_?\"><field name=\"VAR\" id=\"9nNCw-{!#H)1OIG!b(OA\">last_time</field></block></value></block></value><value name=\"B\"><block type=\"math_number\" id=\"Ti=].gV3-%XI[#PW(%l6\"><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=\"eZvNAX!cPL9e^/jj[P.t\"><field name=\"VAR\" id=\"9nNCw-{!#H)1OIG!b(OA\">last_time</field><value name=\"VALUE\"><block type=\"time_get_ticks_ms\" id=\"lF}!(op9rPQR)*qAike2\"></block></value><next><block type=\"variables_set\" id=\"tK8*YV1}z7LTee7_Zf)N\"><field name=\"VAR\" id=\"OIlQiFBwJeW,orCmqzRl\">x_angle</field><value name=\"VALUE\"><block type=\"hardware_servo_get_servo_angle\" id=\"dBE)Q(bj6#uNz833mq]s\"><field name=\"ID\">SERVO_ID_X</field></block></value><next><block type=\"variables_set\" id=\"iA7KYuKIFPNH=s(#lt?:\"><field name=\"VAR\" id=\"89Mt1=l^Xm$_;O}g5nDg\">y_angle</field><value name=\"VALUE\"><block type=\"hardware_servo_get_servo_angle\" id=\"bk+bV2-Q$Y^mNAZVD=dZ\"><field name=\"ID\">SERVO_ID_Y</field></block></value><next><block type=\"lvgl_label_set_text\" id=\"l5=5`hC;SN-`e5N#|H`s\"><field name=\"NAME\">label_agnle_x</field><value name=\"VALUE\"><shadow type=\"text\" id=\"o~/KAZBI/j+P$ucN!Og_\"><field name=\"TEXT\">hello M5</field></shadow><block type=\"text_add_str\" id=\"N6y-_k`C(w?S/NURx*i.\"><value name=\"VALUE1\"><shadow type=\"text\" id=\";L-wF~Vr~bS`VHQ0%wEL\"><field name=\"TEXT\">X-Axis Servo Angle: </field></shadow></value><value name=\"VALUE2\"><block type=\"variables_get\" id=\"g=/9XxJzlr@vpPcdB~ej\"><field name=\"VAR\" id=\"OIlQiFBwJeW,orCmqzRl\">x_angle</field></block></value></block></value><next><block type=\"lvgl_label_set_text\" id=\"usF^mje5.1,x_yerry^F\"><field name=\"NAME\">label_angle_y</field><value name=\"VALUE\"><shadow type=\"text\" id=\"UNJ~~*HUID_oo(m/$qCI\"><field name=\"TEXT\">hello M5</field></shadow><block type=\"text_add_str\" id=\"84x/jQo.NY-{#Xb!z5Hb\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"*veB`O[@9Q4I%Ee|D*0}\"><field name=\"TEXT\">Y-Axis Servo Angle: </field></shadow></value><value name=\"VALUE2\"><block type=\"variables_get\" id=\"xwBKhzF;l(z_=!fm^i~X\"><field name=\"VAR\" id=\"89Mt1=l^Xm$_;O}g5nDg\">y_angle</field></block></value></block></value></block></next></block></next></block></next></block></next></block></statement></block></next></block></statement></block>","screen":[{"simulationName":"Built-in","type":"builtin","width":320,"height":239.99999999999997,"scale":0.63,"screenName":"","blockId":"","screenColorType":0,"rotation":1,"id":"builtin","createTime":1776329679086}],"logicWhenNum":0,"customList":[]} |