Skip to content

Commit bbf46c6

Browse files
committed
feat: smalrubot-s1
1 parent 1086aa9 commit bbf46c6

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

src/containers/ruby-tab/smalrubot-s1-snippets.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,65 @@
22
"smalrubot_s1.action": {
33
"snippet": "smalrubot_s1.action(\"${1:forward}\")",
44
"description": "[進める▼]"
5+
},
6+
"smalrubot_s1.a-forward": {
7+
"snippet": "forward",
8+
"description": "進める"
9+
},
10+
"smalrubot_s1.a-backward": {
11+
"snippet": "backward",
12+
"description": "バックさせる"
13+
},
14+
"smalrubot_s1.a-turn-left": {
15+
"snippet": "left",
16+
"description": "左に曲げる"
17+
},
18+
"smalrubot_s1.a-turn-right": {
19+
"snippet": "right",
20+
"description": "右に曲げる"
21+
},
22+
"smalrubot_s1.a-stop": {
23+
"snippet": "stop",
24+
"description": "止める"
25+
},
26+
"smalrubot_s1.action-in": {
27+
"snippet": "smalrubot_s1.action(\"${1:forward}\", ${2:0.5})",
28+
"description": "(0.5) 秒 [進める▼]"
29+
},
30+
"smalrubot_s1.bend_arm": {
31+
"snippet": "smalrubot_s1.bend_arm(${1:90}, ${2:1})",
32+
"description": "(1) 秒でアームを (90) 度に曲げる"
33+
},
34+
"smalrubot_s1.sensor_value": {
35+
"snippet": "smalrubot_s1.sensor_value(\"${1:left}\")",
36+
"description": "[左▼] のセンサー"
37+
},
38+
"smalrubot_s1.d-left": {
39+
"snippet": "left",
40+
"description": ""
41+
},
42+
"smalrubot_s1.d-right": {
43+
"snippet": "right",
44+
"description": ""
45+
},
46+
"smalrubot_s1.led_on": {
47+
"snippet": "smalrubot_s1.led(\"${1:left}\", true)",
48+
"description": "[左▼] のLEDをオンにする"
49+
},
50+
"smalrubot_s1.led_off": {
51+
"snippet": "smalrubot_s1.led(\"${1:left}\", false)",
52+
"description": "[左▼] のLEDをオフにする"
53+
},
54+
"smalrubot_s1.get_motor_speed": {
55+
"snippet": "smalrubot_s1.get_motor_speed(\"${1:left}\")",
56+
"description": "[左▼] DCモーターの速度 (%)"
57+
},
58+
"smalrubot_s1.set_motor_speed": {
59+
"snippet": "smalrubot_s1.set_motor_speed(\"${1:left}\", ${1:50})",
60+
"description": "[左▼] DCモーターの速度を (50) (%) にする"
61+
},
62+
"smalrubot_s1.arm_calibration=": {
63+
"snippet": "smalrubot_s1.arm_calibration = ${1:0}",
64+
"description": "アームを (0) 度調整する"
565
}
666
}

0 commit comments

Comments
 (0)