chao 6 days ago
parent
commit
ccde7828e7
3 changed files with 288 additions and 149 deletions
  1. 29 44
      blockly/blocks/python/extension_module.js
  2. 2 2
      src/editor.js
  3. 257 103
      src/python/AI/拼音识别.xml

+ 29 - 44
blockly/blocks/python/extension_module.js

@@ -1875,15 +1875,16 @@ Blockly.Python['esp32_main_controller_led_strip_set'] = function (block) {
     Blockly.Python.definitions_['v831_import_sys'] = `import sys
 sys.path.append("/root/")`
     Blockly.Python.definitions_['v831_import_CocoPi_multiFuncGpio'] = `from CocoPi import multiFuncGpio`;
-    Blockly.Python.addVariable("STRIP" + value_io, `STRIP${value_io} = multiFuncGpio(${value_io - 1},7)`, true);
+    Blockly.Python.addVariable("STRIP" + value_io, `STRIP${value_io} = multiFuncGpio(${value_io - 1},7)
+STRIP${value_io}.setBrightness(${value_brightness})`, true);
 
     Blockly.Python.addVariable("setLedColor", 'setLedColor = ""', true)
     // TODO: Assemble Python into code variable.
     console.log(value_color)
-    var code = `STRIP${value_io}.setBrightness(${value_brightness})
-setLedColor = ${value_color}
-STRIP${value_io}.setPixelColor(${value_location} - 1 ,setLedColor[0],setLedColor[1],setLedColor[2])
-STRIP${value_io}.pixelShow()
+    var code = `setLedColor = ${value_color}
+STRIP${value_io}.setRgbSerialColor(${value_location} - 1 ,setLedColor[0],setLedColor[1],setLedColor[2])
+STRIP${value_io}.rgbSerialShow()
+time.sleep(0.01)
 `
 
     return code;
@@ -1937,23 +1938,15 @@ Blockly.Python['esp32_main_controller_led_strip_set_one'] = function (block) {
     Blockly.Python.definitions_['v831_import_sys'] = `import sys
 sys.path.append("/root/")`
     Blockly.Python.definitions_['v831_import_CocoPi_multiFuncGpio'] = `from CocoPi import multiFuncGpio`;
-    Blockly.Python.addVariable("STRIP" + value_io, `STRIP${value_io} = multiFuncGpio(${value_io - 1},7)`, true);
+    Blockly.Python.addVariable("STRIP" + value_io, `STRIP${value_io} = multiFuncGpio(${value_io - 1},7)
+STRIP${value_io}.setBrightness(${value_brightness})`, true);
 
-    // TODO: Assemble Python into code variable.
-    Blockly.Python.addVariable("setLedColorInit"+value_io, `setLedColorInit${value_io} = (0,0,0)`, true)
-    Blockly.Python.addVariable("brightness"+value_io, `brightness${value_io} = 0`, true)
     Blockly.Python.addFunction("LEDSTRIPSHOW",`def LEDSTRIPSHOW(LEDCOLOR,num1,num2,brightness):
-    global setLedColorInit${value_io} ${global?`,${global}`:''}
-    if LEDCOLOR != setLedColorInit${value_io} or brightness != brightness${value_io}:
-        for i in range(num1-1,num2):
-            STRIP${value_io}.setBrightness(brightness)
-            STRIP${value_io}.setPixelColor(i-1 ,LEDCOLOR[0],LEDCOLOR[1],LEDCOLOR[2])
-            STRIP${value_io}.pixelShow()
-            #time.sleep(0.01)
-        setLedColorInit${value_io} = LEDCOLOR
-        brightness${value_io} = brightness
-    else:
-        pass
+
+    for i in range(num1-1,num2+1):
+        STRIP${value_io}.setRgbSerialColor(i-1 ,LEDCOLOR[0],LEDCOLOR[1],LEDCOLOR[2])
+        STRIP${value_io}.rgbSerialShow()
+        time.sleep(0.01)
 `,true)
     var code = `LEDSTRIPSHOW(${value_color},${location},${location1},${value_brightness})\n`
 
@@ -2001,25 +1994,17 @@ Blockly.Python['esp32_main_controller_led_strip_set_all'] = function (block) {
     Blockly.Python.definitions_['v831_import_sys'] = `import sys
 sys.path.append("/root/")`
     Blockly.Python.definitions_['v831_import_CocoPi_multiFuncGpio'] = `from CocoPi import multiFuncGpio`;
-    Blockly.Python.addVariable("STRIP" + value_io, `STRIP${value_io} = multiFuncGpio(${value_io - 1},7)`, true);
+    Blockly.Python.addVariable("STRIP" + value_io, `STRIP${value_io} = multiFuncGpio(${value_io - 1},7)
+STRIP${value_io}.setBrightness(${value_brightness})`, true);
 
-    // TODO: Assemble Python into code variable.
-    Blockly.Python.addVariable("setLedColorInit"+value_io, `setLedColorInit${value_io} = (0,0,0)`, true)
-    Blockly.Python.addVariable("brightness"+value_io, `brightness${value_io} = 0`, true)
     Blockly.Python.addFunction("LEDSTRIPSHOW",`def LEDSTRIPSHOW(LEDCOLOR,num1,num2,brightness):
-    global setLedColorInit${value_io} ${global?`,${global}`:''}
-    if LEDCOLOR != setLedColorInit${value_io} or brightness != brightness${value_io}:
-        for i in range(num1-1,num2):
-            STRIP${value_io}.setBrightness(brightness)
-            STRIP${value_io}.setPixelColor(i-1 ,LEDCOLOR[0],LEDCOLOR[1],LEDCOLOR[2])
-            
-            #time.sleep(0.01)
-        setLedColorInit${value_io} = LEDCOLOR
-        brightness${value_io} = brightness
-    else:
-        pass
+    
+    for i in range(num1-1,num2+1):
+        STRIP${value_io}.setRgbSerialColor(i-1 ,LEDCOLOR[0],LEDCOLOR[1],LEDCOLOR[2])
+        STRIP${value_io}.rgbSerialShow()
+        time.sleep(0.01)
 `,true)
-    var code = `LEDSTRIPSHOW(${value_color},1,16,${value_brightness})\n`
+    var code = `LEDSTRIPSHOW(${value_color},1,10,${value_brightness})\n`
 
     return code;
 }
@@ -2048,17 +2033,17 @@ Blockly.Python['esp32_main_controller_led_strip_set_all_off'] = function (block)
     Blockly.Python.definitions_['v831_import_sys'] = `import sys
 sys.path.append("/root/")`
     Blockly.Python.definitions_['v831_import_CocoPi_multiFuncGpio'] = `from CocoPi import multiFuncGpio`;
-    Blockly.Python.addVariable("STRIP" + value_io, `STRIP${value_io} = multiFuncGpio(${value_io - 1},7)`, true);
+    Blockly.Python.addVariable("STRIPOFF" + value_io, `STRIPOFF${value_io} = multiFuncGpio(${value_io - 1},7)
+STRIPOFF${value_io}.setBrightness(0)`, true);
 
     Blockly.Python.addFunction("LEDSTRIPSHOWOFF",`def LEDSTRIPSHOWOFF(LEDCOLOR):
-    for i in range(16):
-        STRIP${value_io}.setBrightness(0)
-        STRIP${value_io}.setPixelColor(i ,LEDCOLOR[0],LEDCOLOR[1],LEDCOLOR[2])
-        STRIP${value_io}.pixelShow()
-    time.sleep(0.15)
+    for i in range(10):
+        
+        STRIPOFF${value_io}.setRgbSerialColor(i ,LEDCOLOR[0],LEDCOLOR[1],LEDCOLOR[2])
+        STRIPOFF${value_io}.rgbSerialShow()
+        time.sleep(0.01)
 `,true)
-    var code = `LEDSTRIPSHOWOFF((0,0,0))
-setLedColorInit${value_io} = (0,0,0)\n`;
+    var code = `LEDSTRIPSHOWOFF((0,0,0))\n`;
     return code;
 }
 

+ 2 - 2
src/editor.js

@@ -2793,7 +2793,7 @@ BlockPyEditor.CATEGORY_MAP = {
         '    <block type="set_pinyin_dict_create_with_items_insert">'+
         '        <mutation items="2"></mutation>'+
         '        <field name="KEY0">ni</field>'+
-        '        <field name="toneADD00">1</field>'+
+        '        <field name="toneADD00">3</field>'+
         '        <field name="KEY1">hao</field>'+
         '        <field name="toneADD11">3</field>'+
         '    </block>'+
@@ -2811,7 +2811,7 @@ BlockPyEditor.CATEGORY_MAP = {
         '    <block type="set_pinyin_dict_create_with_items_insert">'+
         '        <mutation items="3"></mutation>'+
         '        <field name="KEY0">wan</field>'+
-        '        <field name="toneADD00">1</field>'+
+        '        <field name="toneADD00">3</field>'+
         '        <field name="KEY1">shang</field>'+
         '        <field name="toneADD11">4</field>'+
         '        <field name="KEY2">hao</field>'+

+ 257 - 103
src/python/AI/拼音识别.xml

@@ -5,35 +5,37 @@
       <block type="speech_recognition_phonetic_to_pinyin_set_param" id="beR@IXi^|e:8A*ZQ$Ab`">
         <mutation items="3"></mutation>
         <value name="PINYIN0">
-          <shadow xmlns="" type="math_number">
+          <shadow type="math_number" id="sSW{nt9}P2HD-OKV6;@@">
             <field name="NUM">0</field>
           </shadow>
           <block type="set_pinyin_dict_create_with_items_insert" id="B~[y+uuI/Q0vw_u|*p+N">
             <mutation items="2"></mutation>
-            <field name="KEY0">ni</field>
-            <field name="toneADD00">1</field>
-            <field name="KEY1">hao</field>
-            <field name="toneADD11">3</field>
+            <field name="KEY0">lan</field>
+            <field name="toneADD00">2</field>
+            <field name="KEY1">se</field>
+            <field name="toneADD11">4</field>
           </block>
         </value>
         <value name="PINYIN1">
           <block type="set_pinyin_dict_create_with_items_insert" id="Mv}V~t=chVlBm0EqARVg">
             <mutation items="2"></mutation>
-            <field name="KEY0">hao</field>
-            <field name="toneADD00">3</field>
-            <field name="KEY1">de</field>
-            <field name="toneADD11">1</field>
+            <field name="KEY0">hong</field>
+            <field name="toneADD00">2</field>
+            <field name="KEY1">se</field>
+            <field name="toneADD11">4</field>
           </block>
         </value>
         <value name="PINYIN2">
           <block type="set_pinyin_dict_create_with_items_insert" id="aLW;6^iyFA3~ICZ5)jl1">
-            <mutation items="3"></mutation>
-            <field name="KEY0">wan</field>
-            <field name="toneADD00">1</field>
-            <field name="KEY1">shang</field>
-            <field name="toneADD11">4</field>
-            <field name="KEY2">hao</field>
-            <field name="toneADD22">1</field>
+            <mutation items="4"></mutation>
+            <field name="KEY0">ke</field>
+            <field name="toneADD00">3</field>
+            <field name="KEY1">ke</field>
+            <field name="toneADD11">3</field>
+            <field name="KEY2">le</field>
+            <field name="toneADD22">4</field>
+            <field name="KEY3">bo</field>
+            <field name="toneADD33">2</field>
           </block>
         </value>
         <next>
@@ -47,112 +49,264 @@
             <next>
               <block type="controls_repeat_forever" id="0S4PQ7RZrwVxZluTFo3`">
                 <statement name="DO">
-                  <block type="ai_lcd_clearcanvas" id="G6dP_S5Ac,*3WbL}Uo(?">
+                  <block type="ai_lcd_textcarvas" id="FowY2RJ$va-MK0)%o-JO">
+                    <value name="POSA">
+                      <block type="lcd_set_position" id="VL~x/q{h`o+yy5ia[Z71">
+                        <value name="POSX">
+                          <shadow type="math_number" id="4MvR_f+ZdN/|}%YBO38n">
+                            <field name="NUM">0</field>
+                          </shadow>
+                        </value>
+                        <value name="POSY">
+                          <shadow type="math_number" id="k*HP/WXNc-rbIULY{.O0">
+                            <field name="NUM">40</field>
+                          </shadow>
+                        </value>
+                      </block>
+                    </value>
+                    <value name="CONTENT">
+                      <shadow type="text" id="(UZa4B_$dDg@:mv9$HsW">
+                        <field name="TEXT">请对准麦克风说出指令</field>
+                      </shadow>
+                    </value>
+                    <value name="COLOR">
+                      <block type="lcd_set_color" id="~xda6KM=P2kbz=;m%Ur~">
+                        <field name="COLOR">#ffffff</field>
+                      </block>
+                    </value>
+                    <value name="Scale">
+                      <shadow type="math_number" id="f2b/:OgJ?9YV7I@q3RwI">
+                        <field name="NUM">1</field>
+                      </shadow>
+                    </value>
                     <next>
-                      <block type="speech_recognition_phonetic_to_pinyin_start_recognition" id="[LP!G2AAi3Y}w(L!D`x:">
+                      <block type="ai_lcd_showcarvas_set_display" id="2Sd7ec^Y_rHTMmKUwPQQ">
                         <next>
-                          <block type="variables_set" id="@Q32)Jhyr04A#a*By}3`">
-                            <field name="VAR">result</field>
-                            <value name="VALUE">
-                              <shadow type="math_number" id="l,hx;u|etG$-Te+kh(fo">
-                                <field name="NUM">0</field>
-                              </shadow>
-                              <block type="text_join" id="N!Cro42O|y}y,=kcSi8L">
-                                <mutation items="1"></mutation>
-                                <value name="ADD0">
-                                  <block type="speech_recognition_phonetic_to_pinyin_get_result" id="I_-egLU1p7Tc:FW2Og1M"></block>
-                                </value>
-                              </block>
-                            </value>
+                          <block type="speech_recognition_phonetic_to_pinyin_start_recognition" id="[LP!G2AAi3Y}w(L!D`x:">
                             <next>
-                              <block type="controls_if" id="w#0fR7m);2oA)a{DKW7h">
-                                <mutation else="1"></mutation>
-                                <value name="IF0">
-                                  <block type="logic_compare" id="*u)PSU?]SIDmkc=pls[T">
-                                    <field name="OP">NEQ</field>
-                                    <value name="A">
-                                      <block type="variables_get" id="ief{i$NHmanu-y!q8VPv">
-                                        <field name="VAR">result</field>
-                                      </block>
-                                    </value>
-                                    <value name="B">
-                                      <block type="text" id="ryKg%{_p`FU4OEgt0I;#">
-                                        <field name="TEXT">None</field>
-                                      </block>
+                              <block type="variables_set" id="@Q32)Jhyr04A#a*By}3`">
+                                <field name="VAR">result</field>
+                                <value name="VALUE">
+                                  <shadow type="math_number" id="l,hx;u|etG$-Te+kh(fo">
+                                    <field name="NUM">0</field>
+                                  </shadow>
+                                  <block type="text_join" id="N!Cro42O|y}y,=kcSi8L">
+                                    <mutation items="1"></mutation>
+                                    <value name="ADD0">
+                                      <block type="speech_recognition_phonetic_to_pinyin_get_result" id="I_-egLU1p7Tc:FW2Og1M"></block>
                                     </value>
                                   </block>
                                 </value>
-                                <statement name="DO0">
-                                  <block type="ai_lcd_textcarvas" id="|i|jHK#9{to^M~/KW.lb">
-                                    <value name="POSA">
-                                      <block type="lcd_set_position" id="~4[OHfB}gvIc$f+hQf^-">
-                                        <value name="POSX">
-                                          <shadow type="math_number" id="BF2oy+_s~/^1Nr:n[hQ_">
-                                            <field name="NUM">0</field>
-                                          </shadow>
+                                <next>
+                                  <block type="controls_if" id="w#0fR7m);2oA)a{DKW7h">
+                                    <mutation elseif="2"></mutation>
+                                    <value name="IF0">
+                                      <block type="logic_compare" id="*u)PSU?]SIDmkc=pls[T">
+                                        <field name="OP">EQ</field>
+                                        <value name="A">
+                                          <block type="variables_get" id="ief{i$NHmanu-y!q8VPv">
+                                            <field name="VAR">result</field>
+                                          </block>
                                         </value>
-                                        <value name="POSY">
-                                          <shadow type="math_number" id="#lL~a1+92t/7QqY#EIeW">
-                                            <field name="NUM">0</field>
-                                          </shadow>
+                                        <value name="B">
+                                          <block type="text" id="ryKg%{_p`FU4OEgt0I;#">
+                                            <field name="TEXT">lan2 se4</field>
+                                          </block>
                                         </value>
                                       </block>
                                     </value>
-                                    <value name="CONTENT">
-                                      <shadow type="text" id="D=bzUrXX_Sz-5k!{nRfc">
-                                        <field name="TEXT"></field>
-                                      </shadow>
-                                      <block type="variables_get" id="DV1j,lZr-(6#2o[0Q/]o">
-                                        <field name="VAR">result</field>
+                                    <statement name="DO0">
+                                      <block type="ai_lcd_clearcanvas" id="G6dP_S5Ac,*3WbL}Uo(?">
+                                        <next>
+                                          <block type="ai_lcd_draw_rectangle" id="y6ISPDuy?~9m-1i9cq#~">
+                                            <field name="rect_type">fillrect</field>
+                                            <value name="POSA">
+                                              <block type="lcd_set_position" id="Th?A$4N{WTz/Ns-G+;PL">
+                                                <value name="POSX">
+                                                  <shadow type="math_number" id="d_-@m1f/e0UKT$=:P,nu">
+                                                    <field name="NUM">0</field>
+                                                  </shadow>
+                                                </value>
+                                                <value name="POSY">
+                                                  <shadow type="math_number" id="HgmVjW3WbhTyS$0=l4,0">
+                                                    <field name="NUM">0</field>
+                                                  </shadow>
+                                                </value>
+                                              </block>
+                                            </value>
+                                            <value name="POSB">
+                                              <block type="lcd_set_width_height" id="J3jNp|/]Mydt`xkG{X@,">
+                                                <value name="WIDTH">
+                                                  <shadow type="math_number" id="Dt*X:9S18Dh.uaQqZVN2">
+                                                    <field name="NUM">320</field>
+                                                  </shadow>
+                                                </value>
+                                                <value name="HEIGHT">
+                                                  <shadow type="math_number" id="lkdvr1hVxii8VsMq%R%D">
+                                                    <field name="NUM">240</field>
+                                                  </shadow>
+                                                </value>
+                                              </block>
+                                            </value>
+                                            <value name="COLOR">
+                                              <block type="lcd_set_color" id="3}o-{00O~lshqL:JtGto">
+                                                <field name="COLOR">#33ccff</field>
+                                              </block>
+                                            </value>
+                                          </block>
+                                        </next>
                                       </block>
-                                    </value>
-                                    <value name="COLOR">
-                                      <block type="lcd_set_color" id="qZg|VNE9}NC/sG}-Ozdx">
-                                        <field name="COLOR">#ffffff</field>
+                                    </statement>
+                                    <value name="IF1">
+                                      <block type="logic_compare" id="F6!pRkJI|AoE{|AY`DuH">
+                                        <field name="OP">EQ</field>
+                                        <value name="A">
+                                          <block type="variables_get" id=":MMUgcrV3T.3/N91}JkA">
+                                            <field name="VAR">result</field>
+                                          </block>
+                                        </value>
+                                        <value name="B">
+                                          <block type="text" id="wX2N!!cGIGZ_pUTpEwcj">
+                                            <field name="TEXT">hong2 se4</field>
+                                          </block>
+                                        </value>
                                       </block>
                                     </value>
-                                    <value name="Scale">
-                                      <shadow type="math_number" id="$rBez;,7RdO44FI!k+:u">
-                                        <field name="NUM">2</field>
-                                      </shadow>
-                                    </value>
-                                  </block>
-                                </statement>
-                                <statement name="ELSE">
-                                  <block type="ai_lcd_textcarvas" id="dx20(vk6Ba%AL_$d;Cbm">
-                                    <value name="POSA">
-                                      <block type="lcd_set_position" id="hZZ);J-azFc,V!Kj9_x+">
-                                        <value name="POSX">
-                                          <shadow type="math_number" id="|K%S7fnQzv!j7^Yac1bZ">
-                                            <field name="NUM">0</field>
-                                          </shadow>
+                                    <statement name="DO1">
+                                      <block type="ai_lcd_clearcanvas" id="AalG0XjX9?6F~YL7zjsA">
+                                        <next>
+                                          <block type="ai_lcd_draw_rectangle" id="olyyZMT*(hV1^=z#A4Xu">
+                                            <field name="rect_type">fillrect</field>
+                                            <value name="POSA">
+                                              <block type="lcd_set_position" id="L%P0v2PP5R]5@^|z3.0K">
+                                                <value name="POSX">
+                                                  <shadow type="math_number" id="[8P.zIx?9+iP9IPdMCO!">
+                                                    <field name="NUM">0</field>
+                                                  </shadow>
+                                                </value>
+                                                <value name="POSY">
+                                                  <shadow type="math_number" id="=(b78fW%Fdk6z{bjY7Rl">
+                                                    <field name="NUM">0</field>
+                                                  </shadow>
+                                                </value>
+                                              </block>
+                                            </value>
+                                            <value name="POSB">
+                                              <block type="lcd_set_width_height" id="]tsUwf28nu)Lkc=JER_W">
+                                                <value name="WIDTH">
+                                                  <shadow type="math_number" id="=fL8^F!WY2i;bbqaBX#V">
+                                                    <field name="NUM">320</field>
+                                                  </shadow>
+                                                </value>
+                                                <value name="HEIGHT">
+                                                  <shadow type="math_number" id="@=g%1jIzNn0pZ#a**IQ^">
+                                                    <field name="NUM">240</field>
+                                                  </shadow>
+                                                </value>
+                                              </block>
+                                            </value>
+                                            <value name="COLOR">
+                                              <block type="lcd_set_color" id="#iT)$MwWOL]5zRrv:Uy?">
+                                                <field name="COLOR">#ff6666</field>
+                                              </block>
+                                            </value>
+                                          </block>
+                                        </next>
+                                      </block>
+                                    </statement>
+                                    <value name="IF2">
+                                      <block type="logic_compare" id="Fed*J5k-Cumfz5~W`rrs">
+                                        <field name="OP">EQ</field>
+                                        <value name="A">
+                                          <block type="variables_get" id="yPs+x#;w(RSmdBXs/m|`">
+                                            <field name="VAR">result</field>
+                                          </block>
                                         </value>
-                                        <value name="POSY">
-                                          <shadow type="math_number" id="TZq1p-3D?S[nN;f|I{{h">
-                                            <field name="NUM">0</field>
-                                          </shadow>
+                                        <value name="B">
+                                          <block type="text" id="=y3El4!d[I1RBiow:Dmv">
+                                            <field name="TEXT">ke3 ke3 le4 bo2</field>
+                                          </block>
                                         </value>
                                       </block>
                                     </value>
-                                    <value name="CONTENT">
-                                      <shadow type="text" id="D=bzUrXX_Sz-5k!{nRfc">
-                                        <field name="TEXT">未识别到结果</field>
-                                      </shadow>
-                                    </value>
-                                    <value name="COLOR">
-                                      <block type="lcd_set_color" id="rQ#wSFM-VV~@Lr|/oD^P">
-                                        <field name="COLOR">#ffffff</field>
+                                    <statement name="DO2">
+                                      <block type="ai_lcd_clearcanvas" id="S+zF/yK_)R]I`rmmKJNQ">
+                                        <next>
+                                          <block type="ai_lcd_draw_rectangle" id="}%}nWsLQ?V+$]lC)T?m@">
+                                            <field name="rect_type">fillrect</field>
+                                            <value name="POSA">
+                                              <block type="lcd_set_position" id="o|p/CyiJD9aW];A^g$xJ">
+                                                <value name="POSX">
+                                                  <shadow type="math_number" id="Q?nA{Ndd:A$syIHJwJs;">
+                                                    <field name="NUM">0</field>
+                                                  </shadow>
+                                                </value>
+                                                <value name="POSY">
+                                                  <shadow type="math_number" id="cv``q0AiZROSFL2e;bz.">
+                                                    <field name="NUM">0</field>
+                                                  </shadow>
+                                                </value>
+                                              </block>
+                                            </value>
+                                            <value name="POSB">
+                                              <block type="lcd_set_width_height" id="xLnPf7C)D+2ZT|?[S0=o">
+                                                <value name="WIDTH">
+                                                  <shadow type="math_number" id="w/Z,2R;(8Uuw6Je8`X*V">
+                                                    <field name="NUM">320</field>
+                                                  </shadow>
+                                                </value>
+                                                <value name="HEIGHT">
+                                                  <shadow type="math_number" id="tr/TM!P|G}vOGjA/l|W=">
+                                                    <field name="NUM">240</field>
+                                                  </shadow>
+                                                </value>
+                                              </block>
+                                            </value>
+                                            <value name="COLOR">
+                                              <block type="lcd_set_color" id="0G$xF6XDfI(u{CM^ci_u">
+                                                <field name="COLOR">#000000</field>
+                                              </block>
+                                            </value>
+                                            <next>
+                                              <block type="ai_lcd_draw_image_on_canvas" id="=eL/hMFlcSLYsbaH~:|@">
+                                                <value name="image_path">
+                                                  <block type="v831_img_text" id="1Pop$oraX*2Q-l6Rw4sq">
+                                                    <value name="save_path">
+                                                      <shadow type="text" id="1zzCH41$ft^YZ]QeRcm,">
+                                                        <field name="TEXT">/root/preset/img/cocorobo_text.jpg</field>
+                                                      </shadow>
+                                                    </value>
+                                                  </block>
+                                                </value>
+                                                <value name="scale_y">
+                                                  <block type="lcd_set_position" id="FP7d)GOTTkMF?=Ktsw]r">
+                                                    <value name="POSX">
+                                                      <shadow type="math_number" id="G;WqsGtoi3,C|t*x)X#V">
+                                                        <field name="NUM">80</field>
+                                                      </shadow>
+                                                    </value>
+                                                    <value name="POSY">
+                                                      <shadow type="math_number" id=";5@+Ft=8K$R1yaqArGbI">
+                                                        <field name="NUM">100</field>
+                                                      </shadow>
+                                                    </value>
+                                                  </block>
+                                                </value>
+                                                <value name="alpha">
+                                                  <shadow type="math_number" id="fY8UEH1qj0a{J[DLV8Y.">
+                                                    <field name="NUM">1</field>
+                                                  </shadow>
+                                                </value>
+                                              </block>
+                                            </next>
+                                          </block>
+                                        </next>
                                       </block>
-                                    </value>
-                                    <value name="Scale">
-                                      <shadow type="math_number" id="Tq:c,lQo=,-)/FdBGUub">
-                                        <field name="NUM">2</field>
-                                      </shadow>
-                                    </value>
+                                    </statement>
+                                    <next>
+                                      <block type="ai_lcd_showcarvas_set_display" id="HLzGPHV2^#sJ2veU.qwE"></block>
+                                    </next>
                                   </block>
-                                </statement>
-                                <next>
-                                  <block type="ai_lcd_showcarvas_set_display" id="HLzGPHV2^#sJ2veU.qwE"></block>
                                 </next>
                               </block>
                             </next>