-
Notifications
You must be signed in to change notification settings - Fork 3
/
wedo2.s2e
66 lines (66 loc) · 2.38 KB
/
wedo2.s2e
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
{
"extensionName": "WeDo 2",
"extensionPort": 17311,
"url": "https://github.com/dtschan/scratch2-wedo2",
"blockSpecs":
[
[ "w", "turn %m.motor on for %n secs", "motorOnFor", "motor", 1 ],
[ " ", "turn %m.motor on", "motorOn", "motor" ],
[ " ", "turn %m.motor off", "motorOff", "motor" ],
[ " ", "set %m.motor power to %n", "startMotorPower", "motor", 100 ],
[ " ", "set %m.motor direction to %m.motorDirection", "setMotorDirection", "motor", "this way" ],
[ " ", "set light to %m.lightColor", "setLight", "off" ],
[ "w", "play %m.playNote %m.playOctave for %n secs", "playSound", "C", "6", 0.5 ],
[ "b", "button pressed?", "button1" ],
[ "b", "tilted %m.tiltDirAny ?", "isTilted", "any" ],
[ "r", "tilt", "tilt" ],
[ "r", "distance", "distance" ],
[ "r", "sensorA", "sensorA" ],
[ "r", "sensorB", "sensorB" ],
[ "r", "voltage", "voltage1" ],
[ "r", "current", "current1" ],
[ "r", "battery", "battery1" ]
],
"menus": {
"motorDirection": ["this way", "that way", "other way"],
"motor": ["motor", "motor A", "motor B", "all motors"],
"translate": ["motor",
"motor A",
"motor B",
"all motors",
"this way",
"that way",
"other way",
"distance",
"custom",
"tilt",
"sensorA",
"sensorB",
"button1",
"voltage1",
"current1",
"off",
"pink",
"purple",
"blue",
"sky blue",
"teal",
"green",
"yellow",
"orange",
"red",
"white",
"random",
"any",
"up",
"down",
"left",
"right"],
"playNote": ["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"],
"lightColor": ["off", "pink", "purple", "blue", "sky blue", "teal", "green", "yellow", "orange", "red", "white", "random"],
"tiltDirAny": ["any", "up", "down", "left", "right"],
"mtilt": ["tilt", "custom"],
"mdistance": ["distance", "custom"],
"playOctave": ["0", "1", "2", "3", "4", "5", "6", "7", "8"]
}
}