-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathspine.ino
More file actions
40 lines (26 loc) · 728 Bytes
/
spine.ino
File metadata and controls
40 lines (26 loc) · 728 Bytes
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
#include <IcsHardSerialClass.h>
const byte EN_PIN = 2;
const long BAUDRATE = 115200;
const int TIMEOUT = 1000;
IcsHardSerialClass krs(&Serial,EN_PIN,BAUDRATE,TIMEOUT); //インスタンス+ENピン(2番ピン)およびUARTの指定
void setup() {
// put your setup code here, to run once:
krs.begin();
}
void loop() {
// put your main code here, to run repeatedly:
krs.setPos(0,6000);
delay(1000);
krs.setPos(0,6500);
delay(1000);
krs.setPos(0,7000);
delay(1000);
krs.setPos(0,7500);
delay(1000);
krs.setPos(0,7000);
delay(1000);
krs.setPos(0,6500);
delay(1000);
krs.setPos(0,6000);
delay(1000);
}