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
9.6 KiB
Plaintext
1 line
9.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":"e`E8RZr-rA0C2EIG","createTime":1776332351792,"backgroundColor":"#000000","isLVGL":true,"isSelected":true},{"name":"label_title","type":"lvgl_label","layer":1,"screenId":"builtin","screenName":"","id":"xczUmbQL8bA2ET-U","createTime":1776333547100,"x":20,"y":5,"color":"#0dc9f4","backgroundColor":"#000000","bg_opacity":0,"text":"Servo Control Example","font":"lv.font_montserrat_24","pageId":"e`E8RZr-rA0C2EIG","isLVGL":true,"isSelected":false,"width":276,"height":27},{"name":"label_status","type":"lvgl_label","layer":2,"screenId":"builtin","screenName":"","id":"n@`wQyM7ODD*71FM","createTime":1776333641391,"x":153,"y":115,"color":"#0dc9f4","backgroundColor":"#ffffff","bg_opacity":0,"text":"--","font":"lv.font_montserrat_16","pageId":"e`E8RZr-rA0C2EIG","isLVGL":true,"isSelected":false,"width":77,"height":14}],"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":"<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=\"Svwi.(o`imX_fOjhb%X+\"><next><block type=\"system_stackchan_init\" id=\"pcJ5=@p|OFgj:6nGg39F\"><field name=\"I2C\">1</field><field name=\"UART\">1</field><next><block type=\"lvgl_page_screen_load\" id=\"Iu7ACv{uN~_!8X-cz/;]\"><field name=\"NAME\">page0</field><next><block type=\"speaker_begin\" id=\"96yb_U8#?RD?8Vql2+TL\"><next><block type=\"speaker_set_volume_percentage\" id=\"VIM@pc+zGBoC{@f]M#DT\"><value name=\"VOLUME\"><shadow type=\"math_slider\" id=\"K[zN4P1X*}_1,2`pg77#\"><mutation max=\"100\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">50</field></shadow></value><next><block type=\"hardware_servo_set_servo_power\" id=\"/A/k!2v]XrNmdM7YP=R;\"><value name=\"VALUE\"><shadow type=\"hardware_servo_power_option\" id=\"Qg:Q}IG@Uv7*~JD/Z7(?\"><field name=\"VALUE\">True</field></shadow></value><next><block type=\"hardware_servo_set_servo_torque\" id=\"/?Ji/C@];%9#FUv~Ofnh\"><field name=\"ID\">SERVO_ID_X</field><value name=\"VALUE\"><shadow type=\"hardware_servo_power_option\" id=\"Qx]R:n|VNo0WAsVz6pc}\"><field name=\"VALUE\">True</field></shadow></value><next><block type=\"hardware_servo_set_servo_torque\" id=\"o*XW?U0%VElm}1xXd2ZS\"><field name=\"ID\">SERVO_ID_X</field><value name=\"VALUE\"><shadow type=\"hardware_servo_power_option\" id=\"wl]x?U!41z5(,fo-,($f\"><field name=\"VALUE\">True</field></shadow></value><next><block type=\"hardware_servo_set_servo_angle_time\" id=\"/^t._I0i#4s+aa3%~%Tn\"><mutation mode=\"SERVO_ID_X\"></mutation><field name=\"ID\">SERVO_ID_X</field><value name=\"ANGLE\"><shadow type=\"math_slider\" id=\"^v8#Q~Q.Tm.3pUNUx)Si\"><mutation max=\"135\" min=\"-135\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow></value><value name=\"TIME\"><shadow type=\"math_number\" id=\"SJaE,H4wqkJkrnj}T0.7\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1000</field></shadow></value><next><block type=\"hardware_servo_set_servo_angle_time\" id=\"9IF;|FP)w*AdH}{W$$PR\"><mutation mode=\"SERVO_ID_Y\"></mutation><field name=\"ID\">SERVO_ID_Y</field><value name=\"ANGLE\"><shadow type=\"math_slider\" id=\"HxvhzLR{]@0dLhBfEOAa\"><mutation max=\"90\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">45</field></shadow></value><value name=\"TIME\"><shadow type=\"math_number\" id=\"]$sx-Gc)%K{UrX9i(9s5\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1000</field></shadow></value><next><block type=\"speaker_tone\" id=\"*CyHp!-I=}4piCX38frC\"><value name=\"FREQ\"><shadow type=\"math_number\" id=\"9}TL%W+w@I.POshRg?Q[\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">678</field></shadow></value><value name=\"MS\"><shadow type=\"math_number\" id=\"?wy~_982oAbFU+!G)-!~\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">300</field></shadow></value><next><block type=\"time_sleep_millisecond\" id=\"25QmwO,BY5*y^*!R}#}V\"><value name=\"MS\"><shadow type=\"math_number\" id=\"u+CDyy}:/D~u09=8STZe\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">2000</field></shadow></value><next><block type=\"lvgl_label_set_text\" id=\"khMa1X+Lz}zA;nIyNY~c\"><field name=\"NAME\">label_status</field><value name=\"VALUE\"><shadow type=\"text\" id=\"@+}b,IH}TUcA}wQ-%C#z\"><field name=\"TEXT\">Rotate counterclockwise</field></shadow></value><next><block type=\"lvgl_label_set_align\" id=\"N%tJ9lSNR)wPXbY@^2M6\"><mutation pageId=\"e`E8RZr-rA0C2EIG\"></mutation><field name=\"NAME\">label_status</field><field name=\"OPTION\">CENTER</field><field name=\"OBJ\">page0</field><value name=\"X\"><shadow type=\"math_number\" id=\"g1!0b-xNb3tx8#$78W):\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></shadow></value><value name=\"Y\"><shadow type=\"math_number\" id=\"kZS:Q{q#Hy@1;LaCgw*p\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></shadow></value><next><block type=\"hardware_servo_set_servo_x_pwm\" id=\"h#_,cdTr5bXRmy8CP/BH\"><value name=\"VALUE\"><shadow type=\"math_slider\" id=\"-fCQZ=t|v@/9QUF$7OW{\"><mutation max=\"100\" min=\"-100\" step=\"10\" precision=\"1\"></mutation><field name=\"NUM\">-50</field></shadow></value><next><block type=\"time_sleep_millisecond\" id=\"+)Wx%Or+XC*[e^M]c2?F\"><value name=\"MS\"><shadow type=\"math_number\" id=\"djzgsd%U_8f7WPN$EUe[\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">3000</field></shadow></value><next><block type=\"lvgl_label_set_text\" id=\"}hGT]M1dx#o=3Bjkc3*[\"><field name=\"NAME\">label_status</field><value name=\"VALUE\"><shadow type=\"text\" id=\"87`sI;DNNz@ePhu_)Q*7\"><field name=\"TEXT\">Rotate clockwise</field></shadow></value><next><block type=\"lvgl_label_set_align\" id=\"Z_2fu{31iu{mVLcbqV$!\"><mutation pageId=\"e`E8RZr-rA0C2EIG\"></mutation><field name=\"NAME\">label_status</field><field name=\"OPTION\">CENTER</field><field name=\"OBJ\">page0</field><value name=\"X\"><shadow type=\"math_number\" id=\"{JmH)*n1capDemHG_^?`\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></shadow></value><value name=\"Y\"><shadow type=\"math_number\" id=\"r1m2=^a1re%Z]!yLMv^x\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></shadow></value><next><block type=\"hardware_servo_set_servo_x_pwm\" id=\"?RN7]fpsQW`{UgO^bwI0\"><value name=\"VALUE\"><shadow type=\"math_slider\" id=\"+]$;PO;R98FpCa54tp@v\"><mutation max=\"100\" min=\"-100\" step=\"10\" precision=\"1\"></mutation><field name=\"NUM\">50</field></shadow></value><next><block type=\"time_sleep_millisecond\" id=\"TEHv#3sM$ue/Z0#x2Z|?\"><value name=\"MS\"><shadow type=\"math_number\" id=\"hpLjoG7M;.B%u!CY(0UN\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">3000</field></shadow></value><next><block type=\"lvgl_label_set_text\" id=\"u4E/UyqgblxNkd)K@mfR\"><field name=\"NAME\">label_status</field><value name=\"VALUE\"><shadow type=\"text\" id=\"%ooFzLhr!:bRf5fNJ@H)\"><field name=\"TEXT\">Go back to center</field></shadow></value><next><block type=\"lvgl_label_set_align\" id=\"ErM)C*6L8^9R~bS~2bwb\"><mutation pageId=\"e`E8RZr-rA0C2EIG\"></mutation><field name=\"NAME\">label_status</field><field name=\"OPTION\">CENTER</field><field name=\"OBJ\">page0</field><value name=\"X\"><shadow type=\"math_number\" id=\"Kvu^:^TVj-BHXWD}3X7:\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></shadow></value><value name=\"Y\"><shadow type=\"math_number\" id=\"+[gzfs(I8Kgk}=IFv1L-\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></shadow></value><next><block type=\"hardware_servo_set_servo_angle_time\" id=\"h6$lb=Jz)j(v^Q@TBH_N\"><mutation mode=\"SERVO_ID_X\"></mutation><field name=\"ID\">SERVO_ID_X</field><value name=\"ANGLE\"><shadow type=\"math_slider\" id=\"y=8S2{^$;X.RUvy1*j}H\"><mutation max=\"135\" min=\"-135\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow></value><value name=\"TIME\"><shadow type=\"math_number\" id=\"X8%CuNgwW|K=wEdfkPU7\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1000</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type=\"basic_on_loop\" id=\"loop_block\" deletable=\"false\" x=\"450\" y=\"50\"><mutation isUpdate=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_update\" id=\"Pjh~#UkdwUq|1/-XtW3%\"></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":1776332351791}],"logicWhenNum":0,"customList":[]} |