Files

2 lines
9.8 KiB
Plaintext

{"version":"V2.0","type":"atoms3-lite","components":[],"resources":[{"software":["ble_uart"]},{"hardware":["hardware_button","rgb","timer"]},{"unit":["unit_angle"]}],"units":[{"type":"unit_angle","name":"angle_0","portList":["A","B","C","Custom"],"portType":"A","userPort":[22,21],"id":"iNckP2lhW&9WtDLd","createTime":1698720720333,"initBlockId":"@v_)2^e}Gm+H3Sxfo9a%"}],"hats":[],"i2cs":[],"blockly":"<variables><variable id=\"aA@OpaEo4|kqd8QZKdY9\">value</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"50\" 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=\"rgb_init\" id=\"G~4%d-%z:D*#*(?|cv6W\"><mutation mode=\"builtin\"></mutation><field name=\"MODE\">builtin</field><next><block type=\"unit_angle_init\" id=\"@v_)2^e}Gm+H3Sxfo9a%\"><field name=\"NAME\">angle_0</field><next><block type=\"timer_init\" id=\"O[hqXzBJ8o?1]z,taQfN\"><field name=\"NAME\">0</field></block></next></block></next></block></next></block></statement></block><block type=\"basic_on_loop\" id=\"loop_block\" deletable=\"false\" x=\"650\" y=\"-10\"><mutation isUpdate=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_update\" id=\"system_m5_update\"></block></statement></block><block type=\"button_callback\" id=\"7_;5VGy53#Y/-ENB.lTl\" x=\"50\" y=\"190\"><field name=\"NAME\">BtnA</field><field name=\"TYPE\">WAS_HOLD</field><statement name=\"FUNC\"><block type=\"text_print\" id=\"`0RFsfhIFt+jx@x_n(BB\"><value name=\"TEXT\"><shadow type=\"text\" id=\"!n6^eQ?4ne{.$r8z~soO\"><field name=\"TEXT\">BLE connection in progress...</field></shadow></value><next><block type=\"rgb_fill_color\" id=\"g0|{g1i0z~%,wFI1r:D`\"><field name=\"NAME\">rgb</field><value name=\"COLOR\"><block type=\"color_rgb_palette\" id=\"hP7+Lbnr1j05zvlKsOx0\"><mutation mode=\"rgb\"></mutation><field name=\"MODE\">rgb</field><value name=\"R\"><shadow type=\"math_slider\" id=\"LFnHIQWkR9Db){KUm]zh\"><mutation max=\"255\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow></value><value name=\"G\"><shadow type=\"math_slider\" id=\"mxmIMcfk(*BCu4;bxruf\"><mutation max=\"255\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow></value><value name=\"B\"><shadow type=\"math_slider\" id=\"?1a1NMTiOoMOSUCzd8Ez\"><mutation max=\"255\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow></value></block></value><next><block type=\"timer_set_mode\" id=\"d.z/k5JH$7)ZO9F0x1ER\"><field name=\"NAME\">0</field><field name=\"MODE\">ONE_SHOT</field><value name=\"PERIOD\"><shadow type=\"math_number\" id=\"osl7LMw.+]]-`1|ORmYe\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">3000</field></shadow></value><next><block type=\"ble_uart_client_init\" id=\"k9C95p@84}3hRn$_-B^P\"><next><block type=\"ble_uart_client_connect\" id=\"83}_}T8}3yq{y@|}x|Bq\"><value name=\"BLE_NAME\"><shadow type=\"text\" id=\"e~9$SSz-zCJj#!lq;Z$5\"><field name=\"TEXT\">pumpkinGarland</field></shadow></value><value name=\"TIMEOUT\"><shadow type=\"math_number\" id=\"]@d^V^|lY)-L-=r`sb53\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">2000</field></shadow></value></block></next></block></next></block></next></block></next></block></statement></block><block type=\"timer_callback\" id=\"V7s?Ah}/{)SBZ6vv[jX_\" x=\"50\" y=\"410\"><field name=\"NAME\">0</field><statement name=\"FUNC\"><block type=\"controls_ifelse\" id=\"%aGN)272fiI3rCP{!ia7\"><value name=\"IF0\"><block type=\"ble_uart_client_is_connected\" id=\"4N#-+0zcAVs*$-+(~Q-M\"></block></value><statement name=\"DO0\"><block type=\"text_print\" id=\"GR))^IN4a+O5:UjAVI)f\"><value name=\"TEXT\"><shadow type=\"text\" id=\"xy/:EsY(aGEI}oxceWO`\"><field name=\"TEXT\">Connected.</field></shadow></value><next><block type=\"rgb_fill_color\" id=\"V06IE]Y;Xs8xBH6q$sdb\"><field name=\"NAME\">rgb</field><value name=\"COLOR\"><block type=\"color_rgb_palette\" id=\"~Z!KHPHyX##wwa:/mY4v\"><mutation mode=\"rgb\"></mutation><field name=\"MODE\">rgb</field><value name=\"R\"><shadow type=\"math_slider\" id=\"Cb-b!~r9U~/I=pkEk/7_\"><mutation max=\"255\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow></value><value name=\"G\"><shadow type=\"math_slider\" id=\"rLOR{lg*CEV2[k7m._:E\"><mutation max=\"255\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow></value><value name=\"B\"><shadow type=\"math_slider\" id=\"Dywxp(p1kn!.[+!caru]\"><mutation max=\"255\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">255</field></shadow></value></block></value><next><block type=\"timer_init\" id=\",1nrmnzI{Ye%!]w/_IG:\"><field name=\"NAME\">1</field><next><block type=\"timer_set_mode\" id=\"u![;t%/{}B2cz1gg4LV8\"><field name=\"NAME\">1</field><field name=\"MODE\">PERIODIC</field><value name=\"PERIOD\"><shadow type=\"math_number\" id=\"NBXg?9JrFUBTvAH0rD-c\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">500</field></shadow></value></block></next></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"text_print\" id=\"{`QO$pfCVBAY`/dveDy}\"><value name=\"TEXT\"><shadow type=\"text\" id=\"*h6BRZfk7:aZe[,:#HAm\"><field name=\"TEXT\">Connection failed.</field></shadow></value><next><block type=\"rgb_fill_color\" id=\"CBSjR25RG3I8AAgo*1KA\"><field name=\"NAME\">rgb</field><value name=\"COLOR\"><block type=\"color_rgb_palette\" id=\"Q!a@BxI4Btu^DKif;vB^\"><mutation mode=\"rgb\"></mutation><field name=\"MODE\">rgb</field><value name=\"R\"><shadow type=\"math_slider\" id=\"F[5sV8inR$vIhqN%5W#B\"><mutation max=\"255\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">255</field></shadow></value><value name=\"G\"><shadow type=\"math_slider\" id=\"1sfU8RM.I}[?mR43QWj(\"><mutation max=\"255\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow></value><value name=\"B\"><shadow type=\"math_slider\" id=\"k#+.RoYSN%WeXC(~iu`f\"><mutation max=\"255\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow></value></block></value></block></next></block></statement></block></statement></block><block type=\"timer_callback\" id=\"8c:pO1|B%x1f:[m`nn;_\" x=\"50\" y=\"710\"><field name=\"NAME\">1</field><statement name=\"FUNC\"><block type=\"controls_ifelse\" id=\"0j;?+INvxp/UM5[b(d[r\"><value name=\"IF0\"><block type=\"ble_uart_client_is_connected\" id=\"u2?e4yl7dg7asRy^1m`?\"></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"Q_YAG?SBooq.oF90Ui%9\"><field name=\"VAR\" id=\"aA@OpaEo4|kqd8QZKdY9\">value</field><value name=\"VALUE\"><block type=\"math_convent_int\" id=\"Zb:`jV!WQ[H58PFJeK8R\"><value name=\"VALUE\"><block type=\"math_arithmetic_arr\" id=\"D*}tfOqCkRx,IXZpCOE7\"><mutation items=\"1\"></mutation><field name=\"OP\">MULTIPLY</field><field name=\"OPERATOR0\">DIVIDE</field><value name=\"A\"><shadow type=\"math_number\" id=\"iO!YZ+9he6S^qsH/O,=%\" disabled=\"true\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"unit_angle_get_analog\" id=\"iQJ?#U2ho-|7{_V4J?UO\"><field name=\"NAME\">angle_0</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"BohIctVOLR:Cim3nIQT~\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">255</field></shadow></value><value name=\"VALUE0\"><shadow type=\"math_number\" id=\"g1It$6h:mY+~u,d5QPnK\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">65535</field></shadow></value></block></value></block></value><next><block type=\"text_print\" id=\"72y/b-5vh4:8(;]-)]QH\"><value name=\"TEXT\"><shadow type=\"text\" id=\")eW*3J?sge-0#eaq#l8J\"><field name=\"TEXT\">failure</field></shadow><block type=\"variables_get\" id=\"E_Dtr%9Lak+^;oo1La2X\"><field name=\"VAR\" id=\"aA@OpaEo4|kqd8QZKdY9\">value</field></block></value><next><block type=\"ble_uart_client_write_raw_data\" id=\",JAEm]:H#el*)kCzA30h\"><value name=\"DATA\"><shadow type=\"math_number\" id=\"K+$CIN1v,@nh_B:rzf$P\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"HFrcPk1aI;L}r3M[553k\"><field name=\"VAR\" id=\"aA@OpaEo4|kqd8QZKdY9\">value</field></block></value></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"text_print\" id=\"!?NgEw][=C@GRw6_h$:5\"><value name=\"TEXT\"><shadow type=\"text\" id=\"oHB%Z=v6*=N+tx`e;rb*\"><field name=\"TEXT\">Connection lost.</field></shadow></value><next><block type=\"rgb_fill_color\" id=\"%GBh_=zoX{PeA$9B(+^f\"><field name=\"NAME\">rgb</field><value name=\"COLOR\"><block type=\"color_rgb_palette\" id=\".U~cmcC?I@OHV4+!Vg1h\"><mutation mode=\"rgb\"></mutation><field name=\"MODE\">rgb</field><value name=\"R\"><shadow type=\"math_slider\" id=\"1nch]Onw5Wri_2D9.$8f\"><mutation max=\"255\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">255</field></shadow></value><value name=\"G\"><shadow type=\"math_slider\" id=\"}|8]Gu4(ItUR@M$9|4N$\"><mutation max=\"255\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow></value><value name=\"B\"><shadow type=\"math_slider\" id=\"vIp)f0w)ul}+)gfrLa}o\"><mutation max=\"255\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow></value></block></value><next><block type=\"ble_uart_client_deinit\" id=\"k:bJOJdWQ$mg.Fo`|@!M\"><next><block type=\"timer_deinit\" id=\"^Tu!BmrN(_D6x%|y..hx\"><field name=\"NAME\">1</field></block></next></block></next></block></next></block></statement></block></statement></block>","screen":[]}