-
Notifications
You must be signed in to change notification settings - Fork 8
/
toolbox.xml
81 lines (81 loc) · 5.31 KB
/
toolbox.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<xml id="blockly-toolbox" style="display: none">
<category name="Accelerometer" colour="0">
<block type="microbit_accelerometer_get_x"></block>
<block type="microbit_accelerometer_get_y"></block>
<block type="microbit_accelerometer_get_z"></block>
<block type="microbit_accelerometer_was_gesture"></block>
<block type="microbit_accelerometer_is_gesture"></block>
<block type="microbit_accelerometer_get_gestures"></block>
<block type="microbit_accelerometer_current_gesture"></block>
</category>
<category name="Buttons" colour="32">
<block type="microbit_button_is_pressed"></block>
<block type="microbit_button_was_pressed"></block>
<block type="microbit_button_get_presses"></block>
</category>
<category name="Compass" colour="64">
<block type="microbit_compass_calibrate"></block>
<block type="microbit_compass_is_calibrated"></block>
<block type="microbit_compass_heading"></block>
<block type="microbit_compass_get_field_strength"></block>
</category>
<category name="Display" colour="96">
<block type="microbit_display_get_pixel"><value name="x"><shadow type="math_number"><field name="NUM">0</field></shadow></value><value name="y"><shadow type="math_number"><field name="NUM">0</field></shadow></value></block>
<block type="microbit_display_set_pixel"><value name="x"><shadow type="math_number"><field name="NUM">0</field></shadow></value><value name="y"><shadow type="math_number"><field name="NUM">0</field></shadow></value><value name="value"><shadow type="math_number"><field name="NUM">9</field></shadow></value></block>
<block type="microbit_display_clear"></block>
<block type="microbit_display_show_image"></block>
<block type="microbit_display_show_animation"></block>
<block type="microbit_display_scroll"><value name="message"><shadow type="text"><field name="TEXT">Hello, World!</field></shadow></value></block>
<block type="microbit_display_on"></block>
<block type="microbit_display_off"></block>
<block type="microbit_display_is_on"></block>
</category>
<category name="Image" colour="128">
<block type="microbit_image_builtins"></block>
<block type="microbit_image_copy"></block>
<block type="microbit_image_invert"></block>
<block type="microbit_image_create"></block>
</category>
<category name="Microbit" colour="160">
<block type="microbit_microbit_panic"></block>
<block type="microbit_microbit_reset"></block>
<block type="microbit_microbit_sleep"><value name="duration"><shadow type="math_number"><field name="NUM">1000</field></shadow></value></block>
<block type="microbit_microbit_running_time"></block>
<block type="microbit_microbit_temperature"></block>
</category>
<category name="Music" colour="192">
<block type="microbit_music_play_built_in"></block>
<block type="microbit_music_pitch"></block>
<block type="microbit_music_play_list_of_notes"></block>
<block type="microbit_music_reset"></block>
<block type="microbit_music_stop"></block>
<block type="microbit_music_set_tempo"><value name="ticks"><shadow type="math_number"><field name="NUM">4</field></shadow></value><value name="bpm"><shadow type="math_number"><field name="NUM">120</field></shadow></value></block>
<block type="microbit_music_get_tempo"></block>
</category>
<category name="Neopixel" colour="224">
<block type="microbit_neopixel_initialise"></block>
<block type="microbit_neopixel_clear"></block>
<block type="microbit_neopixel_show"></block>
<block type="microbit_neopixel_set"><value name="pixel"><shadow type="math_number"><field name="NUM">0</field></shadow></value><value name="red"><shadow type="math_number"><field name="NUM">0</field></shadow></value><value name="green"><shadow type="math_number"><field name="NUM">0</field></shadow></value><value name="blue"><shadow type="math_number"><field name="NUM">0</field></shadow></value></block>
</category>
<category name="Pins" colour="256">
<block type="microbit_pin_touched"></block>
<block type="microbit_pin_read_analog"></block>
<block type="microbit_pin_write_analog"><value name="output"><shadow type="math_number"><field name="NUM">0</field></shadow></value></block>
<block type="microbit_pin_read_digital"></block>
<block type="microbit_pin_write_digital"><value name="output"><shadow type="math_number"><field name="NUM">0</field></shadow></value></block>
</category>
<category name="Radio" colour="288">
<block type="microbit_radio_on"></block>
<block type="microbit_radio_off"></block>
<block type="microbit_radio_config"></block>
<block type="microbit_radio_reset"></block>
<block type="microbit_radio_send_string"><value name="message"><shadow type="text"><field name="TEXT">Some text</field></shadow></value></block>
<block type="microbit_radio_receive"></block>
</category>
<category name="Speech" colour="320">
<block type="microbit_speech_say"><value name="english"><shadow type="text"><field name="TEXT">Exterminate!</field></shadow></value></block>
<block type="microbit_speech_pronounce"><value name="phonemes"><shadow type="text"><field name="TEXT">/HEH5EH4EH3EH2EH2EH3EH4EH5EHLP.</field></shadow></value></block>
<block type="microbit_speech_sing"><value name="song"><shadow type="text"><field name="TEXT">#115DOWWWW</field></shadow></value></block>
</category>
</xml>