-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathextension.js
More file actions
61 lines (61 loc) · 1.98 KB
/
extension.js
File metadata and controls
61 lines (61 loc) · 1.98 KB
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
({
name: "Buzzer", // Category Name
description: "Make buzzer beep sound",
author: "microBlock | timor2542",
category: "Device Control",
version: "1.1.0",
icon: "/static/icon.png", // Category icon
color: "#F39C12", // Category color (recommend some blocks color)
blocks: [ // Blocks in Category
{
xml: `
<block type="tone1">
<value name="pin">
<shadow type="math_number">
<field name="NUM">4</field>
</shadow>
</value>
<value name="freq">
<shadow type="math_number">
<field name="NUM">1000</field>
</shadow>
</value>
<value name="time">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
</block>
`
},
{
xml: `
<block type="tone2">
<value name="pin">
<shadow type="math_number">
<field name="NUM">4</field>
</shadow>
</value>
<value name="freq">
<shadow type="math_number">
<field name="NUM">1000</field>
</shadow>
</value>
</block>
`
},
{
xml: `
<block type="no_tone">
<value name="pin">
<shadow type="math_number">
<field name="NUM">4</field>
</shadow>
</value>
</block>
`
}
],
supportArduinoPlatform: true,
depends: [ ] // Arduino library
});