5f7a8e5301
* update yotta defaults for 16kb devices * refactor deprecated blocks * updates for button events * update button events * update refference * update docs * update docs * update button event blocks * update docs * update block id
141 lines
9.0 KiB
Plaintext
141 lines
9.0 KiB
Plaintext
<xml xmlns="https://developers.google.com/blockly/xml">
|
|
<variables>
|
|
<variable id="wUkGVHoc@p^mter~Rc7h">item</variable>
|
|
<variable id=")f$ml.CVl6|1^?sPWl:;">sdfsadf</variable>
|
|
</variables>
|
|
<block type="device_button_selected_event" x="0" y="0">
|
|
<field name="NAME">Button.AB</field>
|
|
<value name="eventType">
|
|
<shadow type="control_button_event_value"></shadow>
|
|
</value>
|
|
<statement name="HANDLER">
|
|
<block type="variables_set">
|
|
<field name="VAR" id="wUkGVHoc@p^mter~Rc7h">item</field>
|
|
<value name="VALUE">
|
|
<shadow type="math_number">
|
|
<field name="NUM">0</field>
|
|
</shadow>
|
|
<block type="device_get_button2">
|
|
<field name="NAME">Button.B</field>
|
|
</block>
|
|
</value>
|
|
<next>
|
|
<block type="variables_set">
|
|
<field name="VAR" id="wUkGVHoc@p^mter~Rc7h">item</field>
|
|
<value name="VALUE">
|
|
<shadow type="math_number">
|
|
<field name="NUM">0</field>
|
|
</shadow>
|
|
<block type="device_pin_is_pressed">
|
|
<field name="NAME">TouchPin.P1</field>
|
|
</block>
|
|
</value>
|
|
<next>
|
|
<block type="variables_set">
|
|
<field name="VAR" id=")f$ml.CVl6|1^?sPWl:;">sdfsadf</field>
|
|
<value name="VALUE">
|
|
<shadow type="math_number">
|
|
<field name="NUM">0</field>
|
|
</shadow>
|
|
<block type="device_acceleration">
|
|
<field name="NAME">Dimension.Y</field>
|
|
</block>
|
|
</value>
|
|
<next>
|
|
<block type="variables_set">
|
|
<field name="VAR" id=")f$ml.CVl6|1^?sPWl:;">sdfsadf</field>
|
|
<value name="VALUE">
|
|
<shadow type="math_number">
|
|
<field name="NUM">0</field>
|
|
</shadow>
|
|
<block type="device_get_light_level" />
|
|
</value>
|
|
<next>
|
|
<block type="variables_set">
|
|
<field name="VAR" id=")f$ml.CVl6|1^?sPWl:;">sdfsadf</field>
|
|
<value name="VALUE">
|
|
<shadow type="math_number">
|
|
<field name="NUM">0</field>
|
|
</shadow>
|
|
<block type="device_heading" />
|
|
</value>
|
|
<next>
|
|
<block type="variables_set">
|
|
<field name="VAR" id=")f$ml.CVl6|1^?sPWl:;">sdfsadf</field>
|
|
<value name="VALUE">
|
|
<shadow type="math_number">
|
|
<field name="NUM">0</field>
|
|
</shadow>
|
|
<block type="device_temperature" />
|
|
</value>
|
|
<next>
|
|
<block type="variables_set">
|
|
<field name="VAR" id=")f$ml.CVl6|1^?sPWl:;">sdfsadf</field>
|
|
<value name="VALUE">
|
|
<shadow type="math_number">
|
|
<field name="NUM">0</field>
|
|
</shadow>
|
|
<block type="device_get_rotation">
|
|
<field name="NAME">Rotation.Roll</field>
|
|
</block>
|
|
</value>
|
|
<next>
|
|
<block type="variables_set">
|
|
<field name="VAR" id=")f$ml.CVl6|1^?sPWl:;">sdfsadf</field>
|
|
<value name="VALUE">
|
|
<shadow type="math_number">
|
|
<field name="NUM">0</field>
|
|
</shadow>
|
|
<block type="device_get_magnetic_force">
|
|
<field name="NAME">Dimension.Z</field>
|
|
</block>
|
|
</value>
|
|
<next>
|
|
<block type="variables_set">
|
|
<field name="VAR" id=")f$ml.CVl6|1^?sPWl:;">sdfsadf</field>
|
|
<value name="VALUE">
|
|
<shadow type="math_number">
|
|
<field name="NUM">0</field>
|
|
</shadow>
|
|
<block type="device_get_running_time" />
|
|
</value>
|
|
<next>
|
|
<block type="device_set_accelerometer_range">
|
|
<field name="range">AcceleratorRange.TwoG</field>
|
|
</block>
|
|
</next>
|
|
</block>
|
|
</next>
|
|
</block>
|
|
</next>
|
|
</block>
|
|
</next>
|
|
</block>
|
|
</next>
|
|
</block>
|
|
</next>
|
|
</block>
|
|
</next>
|
|
</block>
|
|
</next>
|
|
</block>
|
|
</next>
|
|
</block>
|
|
</statement>
|
|
</block>
|
|
<block type="device_gesture_event" x="555" y="30">
|
|
<field name="NAME">Gesture.SixG</field>
|
|
</block>
|
|
<block type="device_pin_custom_event" x="556" y="156">
|
|
<field name="name">TouchPin.P0</field>
|
|
<value name="eventType">
|
|
<shadow type="control_button_event_value"></shadow>
|
|
</value>
|
|
</block>
|
|
<block type="device_pin_custom_event" x="560" y="274">
|
|
<field name="name">TouchPin.P0</field>
|
|
<value name="eventType">
|
|
<shadow type="control_button_event_value"></shadow>
|
|
</value>
|
|
</block>
|
|
</xml> |