+{"name": "test_output", "dom_code": "<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"controls_whileUntil\" id=\"Eg+_}I*|KDj2r:7;lzVu\" x=\"16\" y=\"109\"><field name=\"MODE\">WHILE</field><value name=\"BOOL\"><block type=\"logic_boolean\" id=\"vjj7Y31uCw@dAO#:o!z=\"><field name=\"BOOL\">TRUE</field></block></value><statement name=\"DO\"><block type=\"coderbot_atmega_set_output\" id=\"FWQt#G1gxXgvCXg_pJSD\"><field name=\"OUTPUT\">0</field><value name=\"VALUE\"><block type=\"logic_boolean\" id=\"OX}R-$-yxOonk~1)~V@8\"><field name=\"BOOL\">TRUE</field></block></value><next><block type=\"coderbot_sleep\" id=\"hn*rWB|=?5VdK=9d#~Q,\"><value name=\"ELAPSE\"><block type=\"math_number\" id=\"X4z;@`hR!z6Wr,]?mr!8\"><field name=\"NUM\">0.1</field></block></value><next><block type=\"coderbot_atmega_set_output\" id=\"%gGkLCH-,tpv8-Cvh@m9\"><field name=\"OUTPUT\">1</field><value name=\"VALUE\"><block type=\"logic_boolean\" id=\"$WPv~h)tka4-4ac)B;d-\"><field name=\"BOOL\">TRUE</field></block></value><next><block type=\"coderbot_sleep\" id=\";V5!M5]]T8qq|j`Bdl|h\"><value name=\"ELAPSE\"><block type=\"math_number\" id=\"Z-fZi_u%ISNl3D/?Cy_Q\"><field name=\"NUM\">0.1</field></block></value><next><block type=\"coderbot_atmega_set_output\" id=\"]S_7t8;yoT6_vto%_^]#\"><field name=\"OUTPUT\">2</field><value name=\"VALUE\"><block type=\"logic_boolean\" id=\"6a*oNkOM`1fbClSoMAu)\"><field name=\"BOOL\">TRUE</field></block></value><next><block type=\"coderbot_sleep\" id=\"!ki0*0*T,b5Gr9ZweOAH\"><value name=\"ELAPSE\"><block type=\"math_number\" id=\"jcQPERvz]3Ax}+(PFIJ~\"><field name=\"NUM\">0.1</field></block></value><next><block type=\"coderbot_atmega_set_output\" id=\"9Tmmbu4g;%4U%NN}6^*~\"><field name=\"OUTPUT\">0</field><value name=\"VALUE\"><block type=\"logic_boolean\" id=\"l8J8y%;Lq(j-2c7|]-Dx\"><field name=\"BOOL\">FALSE</field></block></value><next><block type=\"coderbot_sleep\" id=\"]sK==U]48RmtmtEQeYo.\"><value name=\"ELAPSE\"><block type=\"math_number\" id=\"QLzo=Bik,6*oygOtmi(;\"><field name=\"NUM\">0.1</field></block></value><next><block type=\"coderbot_atmega_set_output\" id=\"XF@xS7zgaWl(,^hup`qP\"><field name=\"OUTPUT\">1</field><value name=\"VALUE\"><block type=\"logic_boolean\" id=\"x5axsrx_%hM(@MP1O??0\"><field name=\"BOOL\">FALSE</field></block></value><next><block type=\"coderbot_sleep\" id=\"3_fx6eK)|8mP1ubjFfZq\"><value name=\"ELAPSE\"><block type=\"math_number\" id=\"HQ4:!?6-V41HAQaJCxtr\"><field name=\"NUM\">0.1</field></block></value><next><block type=\"coderbot_atmega_set_output\" id=\"CURTVoSTK_`uN%{,/cVc\"><field name=\"OUTPUT\">2</field><value name=\"VALUE\"><block type=\"logic_boolean\" id=\"`qobZ6#VrlWZlrz:I_yn\"><field name=\"BOOL\">FALSE</field></block></value><next><block type=\"coderbot_sleep\" id=\"V[cnM=e?S(c{9U1;d$hB\"><value name=\"ELAPSE\"><block type=\"math_number\" id=\"BU7nnRfsY/UXGOT4%Cdy\"><field name=\"NUM\">0.1</field></block></value></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></xml>", "code": "while True:\n get_prog_eng().check_end()\n get_atmega().set_output(0, True)\n get_bot().sleep(0.1)\n get_atmega().set_output(1, True)\n get_bot().sleep(0.1)\n get_atmega().set_output(2, True)\n get_bot().sleep(0.1)\n get_atmega().set_output(0, False)\n get_bot().sleep(0.1)\n get_atmega().set_output(1, False)\n get_bot().sleep(0.1)\n get_atmega().set_output(2, False)\n get_bot().sleep(0.1)\n", "default": false}
0 commit comments