mirror of
https://github.com/m5stack/UIFlowLessons.git
synced 2026-05-20 11:02:19 -07:00
2 lines
4.6 KiB
Plaintext
2 lines
4.6 KiB
Plaintext
{"version":"V2.0","type":"atoms3u","components":[],"resources":[{"software":["ble_uart"]},{"hardware":["pwm"]}],"units":[],"hats":[],"i2cs":[],"blockly":"<variables><variable id=\"GwRe=C+-qD-2?#ZST+b?\">value</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=\"system_m5_begin\"><next><block type=\"ble_uart_server_init\" id=\"PH-SS=DQ,0ucJ+{7Z60]\"><value name=\"BLE_NAME\"><shadow type=\"text\" id=\"YV_@^-_+n?rSS0[_]me$\"><field name=\"TEXT\">pumpkinGarland</field></shadow></value><next><block type=\"pwm_init_input\" id=\"s^g`,zLSp!DeOX9)3Yoh\"><mutation duty=\"undefined\"></mutation><field name=\"DUTY_TYPE\">duty</field><value name=\"NAME\"><shadow type=\"math_number\" id=\"E2X7E^`|Ul2M#3MktIX1\"><mutation max=\"Infinity\" min=\"0\" precision=\"1\"></mutation><field name=\"NUM\">40</field></shadow></value><value name=\"FREQ\"><shadow type=\"math_slider\" id=\"6v9TBvy3!{PUr=5^8LwA\"><mutation max=\"40000000\" min=\"1\" step=\"100\" precision=\"1\"></mutation><field name=\"NUM\">20000</field></shadow></value><value name=\"DUTY\"><shadow type=\"math_slider\" id=\"@k~-OUH39cZpN5Eg5Gl(\"><mutation max=\"1023\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">512</field></shadow></value></block></next></block></next></block></statement></block><block type=\"basic_on_loop\" id=\"loop_block\" deletable=\"false\" x=\"50\" 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=\"controls_if\" id=\"qYVZQiiGRUw/[?S0VwB0\"><value name=\"IF0\"><block type=\"ble_uart_server_available_char\" id=\"e)VOei2F+XqPjN=3)fEe\"></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"TfP1_a+*0+4sYQ,SO-AP\"><field name=\"VAR\" id=\"GwRe=C+-qD-2?#ZST+b?\">value</field><value name=\"VALUE\"><block type=\"math_convent_int\" id=\":iibn@J[}20qA@N``lS5\"><value name=\"VALUE\"><block type=\"lists_getIndex\" id=\"4q=7lVs(IAIwN~vOD=t]\"><mutation statement=\"false\" at=\"false\"></mutation><field name=\"MODE\">GET</field><field name=\"WHERE\">FIRST</field><value name=\"VALUE\"><block type=\"ble_uart_server_read_bytes\" id=\",RuI5(@rOzPrw:_uN+Vi\"><value name=\"BYTES\"><shadow type=\"math_number\" id=\"hPZGWxz$|C/@xZL;!jrZ\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow></value></block></value></block></value></block></value><next><block type=\"variables_set\" id=\"aZaZM.rPkm%G|PwtH3u+\"><field name=\"VAR\" id=\"GwRe=C+-qD-2?#ZST+b?\">value</field><value name=\"VALUE\"><block type=\"math_convent_int\" id=\"2Npiz6R@15xb[jLzId;t\"><value name=\"VALUE\"><block type=\"math_arithmetic_arr\" id=\"r!bV:eq(OpXUB*(5odhr\"><mutation items=\"1\"></mutation><field name=\"OP\">MULTIPLY</field><field name=\"OPERATOR0\">DIVIDE</field><value name=\"A\"><shadow type=\"math_number\" id=\"RwMErpx5H@-BuB.,YwmE\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"lLA!=Jk3wskAmYuqkOj%\"><field name=\"VAR\" id=\"GwRe=C+-qD-2?#ZST+b?\">value</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"i7rh+8jD?=Q@i71x~chb\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1023</field></shadow></value><value name=\"VALUE0\"><shadow type=\"math_number\" id=\"$WeCTt5nEI;[Ao@^(S(E\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">255</field></shadow></value></block></value></block></value><next><block type=\"pwm_set_duty\" id=\"k?7[zgl`Z]*#c^C]5X=+\"><field name=\"NAME\">40</field><value name=\"DUTY\"><shadow type=\"math_slider\" id=\"9Mg~g;aywsph{xt{lD[%\"><mutation max=\"1023\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">512</field></shadow><block type=\"variables_get\" id=\"gy-N`p!K#1e7zYB.|Phf\"><field name=\"VAR\" id=\"GwRe=C+-qD-2?#ZST+b?\">value</field></block></value><next><block type=\"text_print\" id=\"8wa,6(#HshNRKI9XoglJ\"><value name=\"TEXT\"><shadow type=\"text\" id=\"Vt}Zp!mgbqOZV{kGz%s_\"><field name=\"TEXT\">hello M5</field></shadow><block type=\"variables_get\" id=\"heCp@R9~=@w{cF6kxY6t\"><field name=\"VAR\" id=\"GwRe=C+-qD-2?#ZST+b?\">value</field></block></value></block></next></block></next></block></next></block></statement></block></next></block></statement></block>","screen":[]}
|