-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtooltips.ts
213 lines (206 loc) · 10.6 KB
/
tooltips.ts
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
// auto-generated, run 'node scripts/lochex.mjs' to refresh
namespace microcode {
export const lang = "en"
export const font = bitmaps.font8
/**
* id to tooltip translation has been cut in favour of just returning ID
* This is currently neccessary to save much needed flash space
* @param id
* @returns
*/
export function resolveTooltip(id: string) {
// let res: string = ""
// if (!id) return id
// else if (id === "tagline") res = "for micro:bit V2";
// else if (id === "sensors") res = "when...";
// else if (id === "actuators") res = "do...";
// else if (id === "when") res = "when";
// else if (id === "do") res = "do";
// else if (id === "connect") res = "connect";
// else if (id === "S2") res = "press";
// else if (id === "S2B") res = "release";
// else if (id === "S3") res = "move";
// else if (id === "S4") res = "timer";
// else if (id === "S5") res = "light";
// else if (id === "S6") res = "temperature";
// else if (id === "S7") res = "radio receive";
// else if (id === "S8") res = "hear";
// else if (id === "S9A") res = "variable X set";
// else if (id === "S9B") res = "variable Y set";
// else if (id === "S9C") res = "variable Z set";
// else if (id === "S10") res = "Magnet";
// else if (id === "S11") res = "slider";
// else if (id === "S12") res = "dial";
// else if (id === "rule") res = "rule";
// else if (id === "add_rule") res = "add rule";
// else if (id === "delete_rule") res = "delete rule";
// else if (id === "arith_equals") res = "equals";
// else if (id === "arith_plus") res = "plus";
// else if (id === "disk") res = "save";
// else if (id === "load") res = "load";
// else if (id === "F0") res = "touch pin 0";
// else if (id === "F1") res = "touch pin 1";
// else if (id === "F2") res = "touch pin 2";
// else if (id === "F3") res = "A Button";
// else if (id === "F4") res = "B Button";
// else if (id === "F3") res = "A Button";
// else if (id === "F4") res = "B Button";
// else if (id === "F5") res = "key 1";
// else if (id === "F6") res = "key 2";
// else if (id === "F7") res = "logo";
// else if (id === "F8") res = "1";
// else if (id === "F9") res = "2";
// else if (id === "F10") res = "3";
// else if (id === "F11") res = "4";
// else if (id === "F12") res = "5";
// else if (id === "F13") res = "1/4 second";
// else if (id === "F14") res = "1 second";
// else if (id === "F18") res = "1 random second";
// else if (id === "F19") res = "5 seconds";
// else if (id === "F15") res = "loud";
// else if (id === "F16") res = "quiet";
// else if (id === "F17_shake") res = "shake";
// else if (id === "F17_tilt_up") res = "tilt up";
// else if (id === "F17_tilt_down") res = "tilt down";
// else if (id === "F17_tilt_left") res = "tilt left";
// else if (id === "F17_tilt_right") res = "tilt right";
// else if (id === "F17_face_up") res = "face up";
// else if (id === "F17_face_down") res = "face down";
// else if (id === "F20A") res = "variable X";
// else if (id === "F20B") res = "variable Y";
// else if (id === "F20C") res = "variable Z";
// else if (id === "F21L") res = "turn left";
// else if (id === "F21R") res = "turn right";
// else if (id === "F22U") res = "warmer";
// else if (id === "F22D") res = "colder";
// else if (id === "C0") res = "edit";
// else if (id === "C1") res = "samples";
// else if (id === "A1") res = "switch page";
// else if (id === "A2") res = "play sound";
// else if (id === "A3") res = "microphone";
// else if (id === "A4") res = "music";
// else if (id === "A5") res = "show image";
// else if (id === "A6") res = "radio send";
// else if (id === "A6A") res = "radio set group";
// else if (id === "A7") res = "random number";
// else if (id === "A10") res = "show number";
// else if (id === "M1") res = "page 1";
// else if (id === "M2") res = "page 2";
// else if (id === "M3") res = "page 3";
// else if (id === "M4") res = "page 4";
// else if (id === "M5") res = "page 5";
// else if (id === "M6") res = "1";
// else if (id === "M7") res = "2";
// else if (id === "M8") res = "3";
// else if (id === "M9") res = "4";
// else if (id === "M10") res = "5";
// else if (id === "M15") res = "LED image";
// else if (id === "M18") res = "music";
// else if (id === "M19giggle") res = "giggle";
// else if (id === "M19happy") res = "happy";
// else if (id === "M19hello") res = "hello";
// else if (id === "M19mysterious") res = "mysterious";
// else if (id === "M19sad") res = "sad";
// else if (id === "M19slide") res = "slide";
// else if (id === "M19soaring") res = "soaring";
// else if (id === "M19spring") res = "spring";
// else if (id === "M19twinkle") res = "twinkle";
// else if (id === "M19yawn") res = "yawn";
// else if (id === "M20A") res = "variable X";
// else if (id === "M20B") res = "variable Y";
// else if (id === "M20C") res = "variable Z";
// else if (id === "M21") res = "radio value";
// else if (id === "M22") res = "dice";
// else if (id === "M23") res = "repeat";
// else if (id === "M24") res = "melody";
// else if (id === "M25") res = "temperature";
// else if (id === "A8") res = "LED";
// else if (id === "A9A") res = "set variable X";
// else if (id === "A9B") res = "set variable Y";
// else if (id === "A9C") res = "set variable Z";
// else if (id === "A20_1") res = "red";
// else if (id === "A20_2") res = "green";
// else if (id === "A20_3") res = "blue";
// else if (id === "A20_4") res = "purple";
// else if (id === "A20_5") res = "yellow";
// else if (id === "A20_6") res = "black";
// else if (id === "A20_rainbow") res = "rainbow";
// else if (id === "A20_sparkle") res = "sparkle";
// else if (id === "A21_") res = "servo set angle";
// else if (id === "SR_LED") res = "LED {x} {y} {state}";
// else if (id === "SR_NOTE") res = "note {index} {state}";
// else if (id === "SR_ON") res = "on";
// else if (id === "SR_OFF") res = "off";
// else if (id === "CAR") res = "robot";
// else if (id === "CAR1") res = "forward";
// else if (id === "CAR2") res = "reverse";
// else if (id === "CAR3") res = "turn left";
// else if (id === "CAR4") res = "turn right";
// else if (id === "CAR5") res = "stop";
// else if (id === "CAR6") res = "fast forward";
// else if (id === "CAR7") res = "spin left";
// else if (id === "CAR8") res = "spin right";
// else if (id === "CAR9") res = "LED red";
// else if (id === "CAR10") res = "LED green";
// else if (id === "CAR11") res = "LED blue";
// else if (id === "CAR12") res = "LED OFF";
// else if (id === "CAR13") res = "arm open";
// else if (id === "CAR14") res = "arm close";
// else if (id === "S13") res = "wall";
// else if (id === "S14") res = "line";
// else if (id === "S15") res = "light";
// else if (id === "F23L") res = "left";
// else if (id === "F23R") res = "right";
// else if (id === "F23B") res = "both";
// else if (id === "F23N") res = "none";
// else if (id === "F23NL") res = "lost left";
// else if (id === "F23NR") res = "lost right";
// else if (id == "led_light_sensor") res = "Light Sensor"
// else if (id == "thermometer") res = "Thermometer"
// else if (id == "accelerometer") res = "Accelerometer"
// else if (id == "accelerometer X") res = "Accelerometer X"
// else if (id == "accelerometer Y") res = "Accelerometer Y"
// else if (id == "accelerometer Z") res = "Accelerometer Z"
// else if (id == "Roll") res = "Roll"
// else if (id == "Pitch") res = "Pitch"
// else if (id == "Logo Press") res = "Logo Press"
// else if (id == "Pin Press") res = "Pin Press"
// else if (id == "Jacdac Light") res = "Jacdac Light"
// else if (id == "Jacdac Moisture") res = "Jacdac Moisture"
// else if (id == "Jacdac Distance") res = "Jacdac Distance"
// else if (id == "Jacdac Flex") res = "Jacdac Flex"
// else if (id == "Jacdac Temperature") res = "Jacdac Temperature"
// else if (id == "Jacdac Light") res = "Jacdac Light"
// else if (id == "Jacdac Moisture") res = "Jacdac Moisture"
// else if (id == "Jacdac Distance") res = "Jacdac Distance"
// else if (id == "Jacdac Flex") res = "Jacdac Flex"
// else if (id == "Jacdac Temperature") res = "Jacdac Temperature"
// else if (id === "linear_graph") res = "Real-time Data"
// else if (id == "Record") res = "Log Data"
// else if (id == "Command Mode") res = "Command Mode"
// else if (id == "View") res = "View Data"
// else if (id == "Done") res = "Done"
// else if (id == "Pins") res = "Pins"
// else if (id == "Pin 0") res = "Pin 0"
// else if (id == "Pin 1") res = "Pin 1"
// else if (id == "Pin 2") res = "Pin 2"
// else if (id == "Volume") res = "Volume"
// else if (id == "Compass") res = "Compass"
// else if (id == "Oscilloscope") res = "Oscilloscope"
// else if (id == "Command Mode") res = "Command Mode"
// else if (id == "Meta Data") res = "Meta Data"
// else if (id == "View Data") res = "View Data"
// else if (id == "View Graph") res = "View Graph"
// else if (id == "Measurement Mode") res = "Measurement Mode"
// else if (id == "Event Mode") res = "Event Mode"
// else if (id == "Reset Datalogger") res = "Reset Datalogger"
// else if (id == "Yes") res = "Yes"
// else if (id == "No") res = "No"
// else if (id == "Start logging") res = "Start logging"
// else if (id == "Start streaming") res = "Start streaming"
// else if (id == "See connected Microbits") res = "See connected Microbits"
// else if (id == "Yes") res = "Yes"
// else if (id == "No") res = "No"
return id
}
}