forked from microsoft/pxt-calliope
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f47c4e
commit f6cd973
Showing
6 changed files
with
17 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,127 +1,7 @@ | ||
<xml xmlns="https://developers.google.com/blockly/xml" | ||
><variables></variables | ||
><block type="pins_on_pulsed" x="0" y="0" | ||
><field name="pulse">PulseValue.Low</field | ||
><value name="pin" | ||
><shadow type="digital_pin" | ||
><field name="pin">DigitalPin.P5</field></shadow | ||
></value | ||
><statement name="HANDLER" | ||
><block type="device_set_analog_pin" | ||
><value name="name" | ||
><shadow type="analog_pin" | ||
><field name="pin">AnalogPin.P9</field></shadow | ||
></value | ||
><value name="value" | ||
><shadow type="math_number" | ||
><field name="NUM">5</field></shadow | ||
></value | ||
><next | ||
><block type="device_set_analog_period" | ||
><value name="pin" | ||
><shadow type="analog_pin" | ||
><field name="pin">AnalogPin.P10</field></shadow | ||
></value | ||
><value name="micros" | ||
><shadow type="math_number" | ||
><field name="NUM">20000</field></shadow | ||
></value | ||
><next | ||
><block type="device_set_digital_pin" | ||
><value name="name" | ||
><shadow type="digital_pin" | ||
><field name="pin">DigitalPin.P6</field></shadow | ||
></value | ||
><value name="value" | ||
><shadow type="math_number" | ||
><field name="NUM">5</field></shadow | ||
></value | ||
><next | ||
><block type="device_set_servo_pin" | ||
><value name="name" | ||
><shadow type="analog_pin" | ||
><field name="pin">AnalogPin.P13</field></shadow | ||
></value | ||
><value name="value" | ||
><shadow type="math_number" | ||
><field name="NUM">5</field></shadow | ||
></value | ||
><next | ||
><block type="device_set_servo_pulse" | ||
><value name="value" | ||
><shadow type="analog_pin" | ||
><field name="pin">AnalogPin.P8</field></shadow | ||
></value | ||
><value name="micros" | ||
><shadow type="math_number" | ||
><field name="NUM">1500</field></shadow | ||
><block type="math_map" | ||
><value name="value" | ||
><shadow type="math_number" | ||
><field name="NUM">0</field></shadow | ||
><block type="pins_i2c_readnumber" | ||
><field name="format">NumberFormat.Int8BE</field | ||
><value name="address" | ||
><shadow type="math_number" | ||
><field name="NUM">0</field></shadow | ||
></value | ||
><value name="repeat" | ||
><shadow type="logic_boolean" | ||
><field name="BOOL">FALSE</field></shadow | ||
></value | ||
></block | ||
></value | ||
><value name="fromLow" | ||
><shadow type="math_number" | ||
><field name="NUM">0</field></shadow | ||
><block type="pins_pulse_in" | ||
><field name="value">PulseValue.Low</field | ||
><value name="name" | ||
><shadow type="digital_pin" | ||
><field name="pin" | ||
>DigitalPin.P9</field | ||
></shadow | ||
></value | ||
></block | ||
></value | ||
><value name="fromHigh" | ||
><shadow type="math_number" | ||
><field name="NUM">1023</field></shadow | ||
><block type="pins_pulse_duration"></block></value | ||
><value name="toLow" | ||
><shadow type="math_number" | ||
><field name="NUM">0</field></shadow | ||
><block type="spi_write" | ||
><value name="value" | ||
><shadow type="math_number" | ||
><field name="NUM">0</field></shadow | ||
></value | ||
></block | ||
></value | ||
><value name="toHigh" | ||
><shadow type="math_number" | ||
><field name="NUM">4</field></shadow | ||
></value | ||
></block | ||
></value | ||
><next | ||
><block type="device_set_digital_pin" | ||
><value name="name" | ||
><shadow type="digital_pin" | ||
><field name="pin">DigitalPin.P9</field></shadow | ||
></value | ||
></block | ||
></next | ||
></block | ||
></next | ||
></block | ||
></next | ||
></block | ||
></next | ||
></block | ||
></next | ||
></block | ||
></statement | ||
></block | ||
><field name="pin">DigitalPin.P0</field | ||
><field name="pulse">PulseValue.Low</field></block | ||
></xml | ||
> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,127 +1,7 @@ | ||
<xml xmlns="https://developers.google.com/blockly/xml" | ||
><variables></variables | ||
><block type="pins_on_pulsed" x="0" y="0" | ||
><field name="pulse">PulseValue.Low</field | ||
><value name="pin" | ||
><shadow type="digital_pin" | ||
><field name="pin">DigitalPin.P5</field></shadow | ||
></value | ||
><statement name="HANDLER" | ||
><block type="device_set_analog_pin" | ||
><value name="name" | ||
><shadow type="analog_pin" | ||
><field name="pin">AnalogPin.P9</field></shadow | ||
></value | ||
><value name="value" | ||
><shadow type="math_number" | ||
><field name="NUM">5</field></shadow | ||
></value | ||
><next | ||
><block type="device_set_analog_period" | ||
><value name="pin" | ||
><shadow type="analog_pin" | ||
><field name="pin">AnalogPin.P10</field></shadow | ||
></value | ||
><value name="micros" | ||
><shadow type="math_number" | ||
><field name="NUM">20000</field></shadow | ||
></value | ||
><next | ||
><block type="device_set_digital_pin" | ||
><value name="name" | ||
><shadow type="digital_pin" | ||
><field name="pin">DigitalPin.P6</field></shadow | ||
></value | ||
><value name="value" | ||
><shadow type="math_number" | ||
><field name="NUM">5</field></shadow | ||
></value | ||
><next | ||
><block type="device_set_servo_pin" | ||
><value name="name" | ||
><shadow type="analog_pin" | ||
><field name="pin">AnalogPin.P13</field></shadow | ||
></value | ||
><value name="value" | ||
><shadow type="math_number" | ||
><field name="NUM">5</field></shadow | ||
></value | ||
><next | ||
><block type="device_set_servo_pulse" | ||
><value name="value" | ||
><shadow type="analog_pin" | ||
><field name="pin">AnalogPin.P8</field></shadow | ||
></value | ||
><value name="micros" | ||
><shadow type="math_number" | ||
><field name="NUM">1500</field></shadow | ||
><block type="math_map" | ||
><value name="value" | ||
><shadow type="math_number" | ||
><field name="NUM">0</field></shadow | ||
><block type="pins_i2c_readnumber" | ||
><field name="format">NumberFormat.Int8BE</field | ||
><value name="address" | ||
><shadow type="math_number" | ||
><field name="NUM">0</field></shadow | ||
></value | ||
><value name="repeat" | ||
><shadow type="logic_boolean" | ||
><field name="BOOL">FALSE</field></shadow | ||
></value | ||
></block | ||
></value | ||
><value name="fromLow" | ||
><shadow type="math_number" | ||
><field name="NUM">0</field></shadow | ||
><block type="pins_pulse_in" | ||
><field name="value">PulseValue.Low</field | ||
><value name="name" | ||
><shadow type="digital_pin" | ||
><field name="pin" | ||
>DigitalPin.P9</field | ||
></shadow | ||
></value | ||
></block | ||
></value | ||
><value name="fromHigh" | ||
><shadow type="math_number" | ||
><field name="NUM">1023</field></shadow | ||
><block type="pins_pulse_duration"></block></value | ||
><value name="toLow" | ||
><shadow type="math_number" | ||
><field name="NUM">0</field></shadow | ||
><block type="spi_write" | ||
><value name="value" | ||
><shadow type="math_number" | ||
><field name="NUM">0</field></shadow | ||
></value | ||
></block | ||
></value | ||
><value name="toHigh" | ||
><shadow type="math_number" | ||
><field name="NUM">4</field></shadow | ||
></value | ||
></block | ||
></value | ||
><next | ||
><block type="device_set_digital_pin" | ||
><value name="name" | ||
><shadow type="digital_pin" | ||
><field name="pin">DigitalPin.P9</field></shadow | ||
></value | ||
></block | ||
></next | ||
></block | ||
></next | ||
></block | ||
></next | ||
></block | ||
></next | ||
></block | ||
></next | ||
></block | ||
></statement | ||
></block | ||
><field name="pin">DigitalPin.P0</field | ||
><field name="pulse">PulseValue.Low</field></block | ||
></xml | ||
> |