a93febb5b7
* add image and deprecated arrow functions * update locales * map basic.showArrow * map arrow blocks * map & remove arrow images * remove arrow blocks * update locales * remove & patch: rgbw -> rgb button/pin pressed -> button/pin event loudness -> soundLevel * update ts mappings for arrows * add wip ts patch rules * update .blocks files * use Click instead of Down as default in Documentation and tests * patch test.blocks * fix lowercase name tag * update test.blocks * update blocks test files * update blocks test files * format block files * pass blocks file tests * fix ts mapping * fix color.defl value closes https://github.com/microsoft/pxt-calliope/issues/136 * fix ts mappings - add optional spacing at the end of rgbw() - map up to v4.0.19 * add suggested changes * replace innerText by textContent Co-authored-by: JW <gitkraken@juriwolf.de> Co-authored-by: Juri <info@juriwolf.de>
125 lines
17 KiB
Plaintext
125 lines
17 KiB
Plaintext
<xml xmlns="https://developers.google.com/blockly/xml">
|
|
<variables>
|
|
<variable id="PGGhch1kuMF##st8~wFr">receivedNumber</variable>
|
|
</variables>
|
|
<block type="pxt-on-start" x="-307" y="-128">
|
|
<statement name="HANDLER">
|
|
<block type="device_show_number">
|
|
<value name="number">
|
|
<shadow type="math_number">
|
|
<field name="NUM">12</field>
|
|
</shadow>
|
|
</value>
|
|
<next>
|
|
<block type="device_show_number">
|
|
<value name="number">
|
|
<shadow type="math_number">
|
|
<field name="NUM">0</field>
|
|
</shadow>
|
|
</value>
|
|
<next>
|
|
<block type="basic_show_icon">
|
|
<field name="i">IconNames.Umbrella</field>
|
|
<next>
|
|
<block type="basic_show_icon">
|
|
<field name="i">IconNames.Heart</field>
|
|
<next>
|
|
<block type="device_print_message">
|
|
<value name="text">
|
|
<shadow type="text">
|
|
<field name="TEXT">hi!</field>
|
|
</shadow>
|
|
</value>
|
|
<next>
|
|
<block type="device_print_message">
|
|
<value name="text">
|
|
<shadow type="text">
|
|
<field name="TEXT">hi!</field>
|
|
</shadow>
|
|
</value>
|
|
<next>
|
|
<block type="device_pause">
|
|
<value name="pause">
|
|
<shadow type="math_number">
|
|
<field name="NUM">100</field>
|
|
</shadow>
|
|
</value>
|
|
<next>
|
|
<block type="device_clear_display">
|
|
<next>
|
|
<block type="device_show_leds">
|
|
<field name="LEDS">`
|
|
. . . . #
|
|
. . . # .
|
|
. . # . .
|
|
. # . . .
|
|
# . . . .
|
|
`</field>
|
|
<next>
|
|
<block type="device_set_led_color">
|
|
<value name="color">
|
|
<shadow type="colorNumberPicker">
|
|
<field name="value">0xff0000</field>
|
|
</shadow>
|
|
</value>
|
|
<next>
|
|
<block type="device_show_number">
|
|
<value name="number">
|
|
<shadow type="math_number">
|
|
<field name="NUM">0</field>
|
|
</shadow>
|
|
<block type="core_rgb">
|
|
<value name="red">
|
|
<shadow type="math_number">
|
|
<field name="NUM">255</field>
|
|
</shadow>
|
|
</value>
|
|
<value name="green">
|
|
<shadow type="math_number">
|
|
<field name="NUM">255</field>
|
|
</shadow>
|
|
</value>
|
|
<value name="blue">
|
|
<shadow type="math_number">
|
|
<field name="NUM">255</field>
|
|
</shadow>
|
|
</value>
|
|
</block>
|
|
</value>
|
|
<next>
|
|
<block type="basic_show_compass">
|
|
<value name="interval">
|
|
<shadow type="timePicker">
|
|
<field name="ms">600</field>
|
|
</shadow>
|
|
</value>
|
|
<next>
|
|
<block type="device_turn_rgb_led_off" />
|
|
</next>
|
|
</block>
|
|
</next>
|
|
</block>
|
|
</next>
|
|
</block>
|
|
</next>
|
|
</block>
|
|
</next>
|
|
</block>
|
|
</next>
|
|
</block>
|
|
</next>
|
|
</block>
|
|
</next>
|
|
</block>
|
|
</next>
|
|
</block>
|
|
</next>
|
|
</block>
|
|
</next>
|
|
</block>
|
|
</next>
|
|
</block>
|
|
</statement>
|
|
</block>
|
|
<block type="device_forever" x="412" y="-30" />
|
|
</xml> |