add blocks in simple index
</value>
<value name="PIN2">
</value>
+ </block>
+ <block type="encoder_init">
+ <value name="CLK">
+ <shadow type="math_number">
+ <field name="NUM">2</field>
+ </shadow>
+ </value>
+ <value name="DT">
+ <shadow type="math_number">
+ <field name="NUM">3</field>
+ </shadow>
+ </value>
+ </block>
+ <block type="encoder_read"></block>
+ <block type="encoder_write">
+ <value name="value">
+ <shadow type="math_number">
+ <field name="NUM">0</field>
+ </shadow>
+ </value>
</block>
<!--DS302-->
<block type="DS1302_init">
<value name="RST">
<shadow type="pins_digital">
- <field name="NUM">2</field>
+ <field name="PIN">2</field>
</shadow>
</value>
<value name="DAT">
<shadow type="pins_digital">
- <field name="NUM">3</field>
+ <field name="PIN">3</field>
</shadow>
</value>
<value name="CLK">
<shadow type="pins_digital">
- <field name="NUM">4</field>
+ <field name="PIN">4</field>
</shadow>
</value>
</block>
</value>
<value name="speed">
<shadow type="math_number">
- <field name="NUM">0</field>
+ <field name="NUM">100</field>
</shadow>
</value>
</block>
