-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path50-Arduino.ino
More file actions
88 lines (77 loc) · 1.98 KB
/
50-Arduino.ino
File metadata and controls
88 lines (77 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
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
/*************************************
YamaX Arduino Core v3.0
To burn on AX-03 for YamaX 5.0
made by Y-modify, Nyanyan & coord.e
Copyright © 2017 Y-modify All Rights Reserved.
QIO,80,160,4M(1M),Disabled,none,nodemcu,115200~
*************************************/
/*****Version Definition*****/
#define YAMAX_VER "5.0"
#define FIRMWARE_VER "5.0-uno"
#if defined(ARDUINO_AVR_UNO) || defined(ESP8266) // AX-01 or something nice
#define S_STABLE
#define BOARD_VER "01"
#else
#error This board is not supported! Please use ESP8266 or Arduino UNO.
#endif
/*****System Setup*****/
void setup() {
Serial.begin(115200);
delay(1000);
// print_c("HELLO YamaX %s\n", YAMAX_VER);
// delay(500);
verInfo(); // Print Version Information
// delay(500);
// print_c("test\n");
print_c("Initializing...\n");
// delay(100);
ControlInit(); // Serial Command Control Initialize
// delay(100);
ServoInit(); // Servo Driver Setup
// delay(100);
//standdelay(50);
stand();
// Start
print_c("Initialization Complete.\n");
/* for(int i = 0; i <5; i++)
{
stand();
delay(5000);
bow();
delay(900);
stand();
delay(2000);
walk(10,300);
stand();
delay(1000);
bye(10);
stand();
delay(1000);
no(5);
}*/
// delay(4000);
// walk(10,300);
// stand();
// kusoran();
// bye(10,0);
// bye(10,1);
// bye(10,2);
// nadenade(10,0);
// nadenade(10,1);
// walk(10,200);
}
/*****Waiting Loop*****/
void loop() {
CommandCheck();
delay(1);
}
/*****Print Version Information*****/
void verInfo() {
print_c("\n*************************************\n");
print_c("YamaX Arduino Core (MCore) v%s\n", FIRMWARE_VER);
print_c("To burn on AX-%s for YamaX %s\n", BOARD_VER, YAMAX_VER);
print_c("Made by Y-modify, Nyanyan & coord.e\n");
print_c("Copyright (c) 2016 Y-modify All Rights Reserved.\n");
print_c("*************************************\n\n");
}
/*****That's all. Enjoy!*****/