修改外接显示四位数码管

This commit is contained in:
Irene-Maxine
2025-07-22 18:19:56 +08:00
parent 24b5bc4304
commit 78c8b0b9ec
11 changed files with 17 additions and 103 deletions

View File

@@ -5265,41 +5265,18 @@
</category>
<category id="cat4Digitdisplay" colour='5BA5A5'>
<block type="communicate_i2c_init">
<block type="display_tm_use_i2c_init">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">disp</field>
</shadow>
</value>
<!-- <value name="I2CSUB">
<shadow type="variables_get">
<field name="VAR">i2c_extend</field>
</shadow>
</value>
<value name="TX">
<shadow type="pins_digital_pin">
<field name="PIN">4</field>
</shadow>
</value>
<value name="RX">
<shadow type="pins_digital_pin">
<field name="PIN">5</field>
</shadow>
</value>
<value name="freq">
<shadow type="math_number">
<field name="NUM">100000</field>
</shadow>
</value>
<next>
<block type="display_tm_use_i2c_init">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">disp</field>
</shadow>
</value>
<value name="I2CSUB">
<shadow type="variables_get">
<field name="VAR">i2c_extend</field>
</shadow>
</value>
</block>
</next>
</value> -->
</block>
<block type="display_tm1650_show_num">
@@ -6958,13 +6935,6 @@
</shadow>
</value>
</block> -->
<block type="storage_is_file">
<value name="FILE">
<shadow type="text">
<field name="TEXT">path</field>
</shadow>
</value>
</block>
<block type="storage_file_tell">
<value name="FILE">
<shadow type="variables_get">