diff --git a/MikuDuino.cpp b/MikuDuino.cpp index a307063..66febc2 100755 --- a/MikuDuino.cpp +++ b/MikuDuino.cpp @@ -11,6 +11,9 @@ * */ +int lu_argc; +char **lu_argv; + int main(int argc,char *argv[]) { //by Small Lu(mo10), Sky Arrow's first son. diff --git a/MikuDuino.h b/MikuDuino.h index 7e04bf0..f6ee1a9 100755 --- a/MikuDuino.h +++ b/MikuDuino.h @@ -37,7 +37,7 @@ void setup(); void loop(); -int lu_argc; -char **lu_argv; +extern int lu_argc; +extern char **lu_argv; #endif diff --git a/MikuDuino.o b/MikuDuino.o new file mode 100644 index 0000000..744aafb Binary files /dev/null and b/MikuDuino.o differ diff --git a/MikuOled.o b/MikuOled.o new file mode 100644 index 0000000..28f35f8 Binary files /dev/null and b/MikuOled.o differ diff --git a/MikuPi.o b/MikuPi.o new file mode 100644 index 0000000..db69323 Binary files /dev/null and b/MikuPi.o differ diff --git a/MikuRelay.o b/MikuRelay.o new file mode 100644 index 0000000..ddc615c Binary files /dev/null and b/MikuRelay.o differ diff --git a/MikuSHT2x.o b/MikuSHT2x.o new file mode 100644 index 0000000..f7434c9 Binary files /dev/null and b/MikuSHT2x.o differ diff --git a/Wire.o b/Wire.o new file mode 100644 index 0000000..57b9131 Binary files /dev/null and b/Wire.o differ diff --git a/examples/arg_oled b/examples/arg_oled new file mode 100755 index 0000000..cb2d33b Binary files /dev/null and b/examples/arg_oled differ diff --git a/examples/arg_oled.cpp b/examples/arg_oled.cpp old mode 100644 new mode 100755 index 11d672a..9987334 --- a/examples/arg_oled.cpp +++ b/examples/arg_oled.cpp @@ -1,39 +1,40 @@ -#include "MikuDuino.h" -#include "MikuOled.h" -#include -#include -/* - * arg_oled.cpp: - * - * Show console parameter on Oled - * - * Usage:arg_oled "parameter1" "parameter2" "parameter3" - * - * Notice:Chinese character set need use GB2312 code!!! - * - * modify mo10(0w0@0w0.pw) 2016-7-9 - * - * https://github.com/bpiq/MikuPi - * - */ - -Miku_Oled oled; -char buf[20]; - -void setup(int argc,char *argv[]) -{ - sayHello(); - oled.begin(); - oled.clearDisplay(); - int i; - for(i=1;i +#include + +/* + * arg_oled.cpp: + * + * Show console parameter on Oled + * + * Usage:arg_oled "parameter1" "parameter2" "parameter3" + * + * Notice:Chinese character set need use GB2312 code!!! + * + * modify mo10(0w0@0w0.pw) 2016-7-9 + * + * https://github.com/bpiq/MikuPi + * + */ + +Miku_Oled oled; +char buf[20]; + +void setup() +{ + sayHello(); + oled.begin(); + oled.clearDisplay(); + int i; + for(i=1;i