Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
299 lines (299 loc) · 10.4 KB

File metadata and controls

299 lines (299 loc) · 10.4 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
{
"servers": [
{
"label": "Rotary encoder",
"detail": "An incremental rotary encoder - converts angular motion of a shaft to digital signal.",
"startName": "startRotaryEncoder",
"classIdentifiers": [
284830153
],
"imports": {
"startRotaryEncoder": "@devicescript/servers"
},
"snippet": "const rotaryEncoder = startRotaryEncoder({\n pin0: pins.${1},\n pin1: pins.${2},\n})\n"
},
{
"label": "Button",
"detail": "A push-button, which returns to inactive position when not operated anymore.",
"startName": "startButton",
"classIdentifiers": [
343122531
],
"imports": {
"startButton": "@devicescript/servers"
},
"snippet": "const button = startButton({\n pin: pins.${1},\n})\n"
},
{
"label": "Switch",
"detail": "A switch, which keeps its position.",
"startName": "startSwitch",
"classIdentifiers": [
450008066
],
"imports": {
"startSwitch": "@devicescript/servers"
},
"snippet": "const switch = startSwitch({\n pin: pins.${1},\n})\n"
},
{
"label": "Flex",
"detail": "A bending or deflection sensor.",
"startName": "startFlex",
"classIdentifiers": [
524797638
],
"imports": {
"startFlex": "@devicescript/servers"
},
"snippet": "const flex = startFlex({\n pinL: pins.${1},\n pinM: pins.${2},\n pinH: pins.${3},\n})\n"
},
{
"label": "Relay",
"detail": "A switching relay.",
"startName": "startRelay",
"classIdentifiers": [
406840918
],
"imports": {
"startRelay": "@devicescript/servers"
},
"snippet": "const relay = startRelay({\n pin: pins.${1},\n})\n"
},
{
"label": "Motion",
"detail": "A sensor, typically PIR, that detects object motion within a certain range",
"startName": "startMotion",
"classIdentifiers": [
293185353
],
"imports": {
"startMotion": "@devicescript/servers"
},
"snippet": "const motion = startMotion({\n pin: pins.${1},\n})\n"
},
{
"label": "Light bulb",
"detail": "A light bulb controller.",
"startName": "startLightBulb",
"classIdentifiers": [
480970060
],
"imports": {
"startLightBulb": "@devicescript/servers"
},
"snippet": "const lightBulb = startLightBulb({\n pin: pins.${1},\n})\n"
},
{
"label": "Buzzer",
"detail": "A simple buzzer.",
"startName": "startBuzzer",
"classIdentifiers": [
458731991
],
"imports": {
"startBuzzer": "@devicescript/servers"
},
"snippet": "const buzzer = startBuzzer({\n pin: pins.${1},\n})\n"
},
{
"label": "Servo",
"detail": "Servo is a small motor with arm that can be pointing at a specific direction.",
"startName": "startServo",
"classIdentifiers": [
318542083
],
"imports": {
"startServo": "@devicescript/servers"
},
"snippet": "const servo = startServo({\n pin: pins.${1},\n})\n"
},
{
"label": "Light level",
"detail": "A sensor that measures luminosity level.",
"startName": "startLightLevel",
"classIdentifiers": [
400333340
],
"imports": {
"startLightLevel": "@devicescript/servers"
},
"snippet": "const lightLevel = startLightLevel({\n pin: pins.${1},\n})\n"
},
{
"label": "Reflected light",
"detail": "A sensor that detects light and dark surfaces, commonly used for line following robots.",
"startName": "startReflectedLight",
"classIdentifiers": [
309087410
],
"imports": {
"startReflectedLight": "@devicescript/servers"
},
"snippet": "const reflectedLight = startReflectedLight({\n pin: pins.${1},\n})\n"
},
{
"label": "Water level",
"detail": "A sensor that measures liquid/water level.",
"startName": "startWaterLevel",
"classIdentifiers": [
343630573
],
"imports": {
"startWaterLevel": "@devicescript/servers"
},
"snippet": "const waterLevel = startWaterLevel({\n pin: pins.${1},\n})\n"
},
{
"label": "Sound level",
"detail": "A sound level detector sensor, gives a relative indication of the sound level.",
"startName": "startSoundLevel",
"classIdentifiers": [
346888797
],
"imports": {
"startSoundLevel": "@devicescript/servers"
},
"snippet": "const soundLevel = startSoundLevel({\n pin: pins.${1},\n})\n"
},
{
"label": "Soil moisture",
"detail": "A soil moisture sensor.",
"startName": "startSoilMoisture",
"classIdentifiers": [
491430835
],
"imports": {
"startSoilMoisture": "@devicescript/servers"
},
"snippet": "const soilMoisture = startSoilMoisture({\n pin: pins.${1},\n})\n"
},
{
"label": "Potentiometer",
"detail": "A slider or rotary potentiometer.",
"startName": "startPotentiometer",
"classIdentifiers": [
522667846
],
"imports": {
"startPotentiometer": "@devicescript/servers"
},
"snippet": "const potentiometer = startPotentiometer({\n pin: pins.${1},\n})\n"
},
{
"label": "Accelerometer",
"detail": "A 3-axis accelerometer.",
"startName": "startAccelerometer",
"classIdentifiers": [
521405449
],
"imports": {
"startAccelerometer": "@devicescript/servers"
},
"snippet": "const accelerometer = startAccelerometer({\n})\n"
},
{
"label": "HID Joystick",
"detail": "Controls a HID joystick.",
"startName": "startHidJoystick",
"classIdentifiers": [
437330261
],
"imports": {
"startHidJoystick": "@devicescript/servers"
},
"snippet": "const hidJoystick = startHidJoystick({\n})\n"
},
{
"label": "HID Keyboard",
"detail": "Control a HID keyboard.",
"startName": "startHidKeyboard",
"classIdentifiers": [
414210922
],
"imports": {
"startHidKeyboard": "@devicescript/servers"
},
"snippet": "const hidKeyboard = startHidKeyboard({\n})\n"
},
{
"label": "HID Mouse",
"detail": "Controls a HID mouse.",
"startName": "startHidMouse",
"classIdentifiers": [
411425820
],
"imports": {
"startHidMouse": "@devicescript/servers"
},
"snippet": "const hidMouse = startHidMouse({\n})\n"
},
{
"label": "Sensirion SHTC3",
"detail": "Start driver for Sensirion SHTC3 temperature/humidity sensor at I2C `0x70`.",
"startName": "startSHTC3",
"classIdentifiers": [
337754823,
382210232
],
"imports": {
"startSHTC3": "@devicescript/drivers"
},
"snippet": "const { temperature, humidity } = await startSHTC3()\n"
},
{
"label": "Sensirion SHT30",
"detail": "Start driver for Sensirion SHT30 temperature/humidity sensor at I2C `0x44` or `0x45` (default is `0x44`)",
"startName": "startSHT30",
"classIdentifiers": [
337754823,
382210232
],
"imports": {
"startSHT30": "@devicescript/drivers"
},
"snippet": "const { temperature, humidity } = await startSHT30()\n"
},
{
"label": "AHT20",
"detail": "Start driver for AHT20 temperature/humidity sensor at I2C address `0x38`.",
"startName": "startAHT20",
"classIdentifiers": [
337754823,
382210232
],
"imports": {
"startAHT20": "@devicescript/drivers"
},
"snippet": "const { temperature, humidity } = await startAHT20()\n"
},
{
"label": "LITEON LTR-390UV-01",
"detail": "Start driver for LITEON LTR-390UV-01 UV/ambient light sensor at I2C address `0x53`.",
"startName": "startLTR390",
"classIdentifiers": [
527306128,
510577394
],
"imports": {
"startLTR390": "@devicescript/drivers"
},
"snippet": "const { uvindex, illuminance } = await startLTR390()\n"
},
{
"label": "Bosch BME68",
"detail": "Start driver for Bosch BME680 temperature/humidity/pressure/gas sensor at I2C `0x77`.",
"startName": "startBME680",
"classIdentifiers": [
337754823,
382210232,
504462570,
346844886
],
"imports": {
"startBME680": "@devicescript/drivers"
},
"snippet": "const { temperature, humidity, pressure, airQualityIndex } = await startBME680()\n"
}
]
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.