-
Notifications
You must be signed in to change notification settings - Fork 0
/
extension.js
63 lines (63 loc) · 2 KB
/
extension.js
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
({
name: "GoGo Bright", // Category Name
description: "Go more with GoGo Bright",
author: "microBlock",
category: "Signal Input/Output",
version: "1.0.0",
icon: "/static/icon.png", // Category icon
color: "#db3f8d", // Category color (recommend some blocks color)
blocks: [ // Blocks in Category
"gogo_bright_input_sensor",
"gogo_bright_input_sensor_color_is",
"gogo_bright_action_motor",
"gogo_bright_motor_action_turn",
{
xml: `
<block type="gogo_bright_motor_action_power">
<value name="power">
<shadow type="math_number">
<field name="NUM">100</field>
</shadow>
</value>
</block>
`
},
"gogo_bright_motor_action_cw",
"gogo_bright_motor_action_rd",
"gogo_bright_action_servo",
{
xml: `
<block type="gogo_bright_servo_seth">
<value name="heading">
<shadow type="math_number">
<field name="NUM">90</field>
</shadow>
</value>
</block>
`
},
{
xml: `
<block type="gogo_bright_servo_turn_cw">
<value name="heading">
<shadow type="math_number">
<field name="NUM">90</field>
</shadow>
</value>
</block>
`
},
{
xml: `
<block type="gogo_bright_servo_turn_ccw">
<value name="heading">
<shadow type="math_number">
<field name="NUM">90</field>
</shadow>
</value>
</block>
`
},
"gogo_bright_action_relay",
]
});