small lu's code

This commit is contained in:
MikuQ.com 2016-07-09 22:25:20 +08:00
parent 85f3555663
commit 9c4eda25d7
11 changed files with 45 additions and 41 deletions

View File

@ -11,6 +11,9 @@
* *
*/ */
int lu_argc;
char **lu_argv;
int main(int argc,char *argv[]) int main(int argc,char *argv[])
{ {
//by Small Lu(mo10), Sky Arrow's first son. //by Small Lu(mo10), Sky Arrow's first son.

View File

@ -37,7 +37,7 @@
void setup(); void setup();
void loop(); void loop();
int lu_argc; extern int lu_argc;
char **lu_argv; extern char **lu_argv;
#endif #endif

BIN
MikuDuino.o Normal file

Binary file not shown.

BIN
MikuOled.o Normal file

Binary file not shown.

BIN
MikuPi.o Normal file

Binary file not shown.

BIN
MikuRelay.o Normal file

Binary file not shown.

BIN
MikuSHT2x.o Normal file

Binary file not shown.

BIN
Wire.o Normal file

Binary file not shown.

BIN
examples/arg_oled Executable file

Binary file not shown.

9
examples/arg_oled.cpp Normal file → Executable file
View File

@ -1,7 +1,8 @@
#include "MikuDuino.h" #include "MikuDuino.h"
#include "MikuOled.h" #include "MikuOled.h"
#include <stdio.h> #include <stdio.h>
#include<stdlib.h> #include <stdlib.h>
/* /*
* arg_oled.cpp: * arg_oled.cpp:
* *
@ -20,14 +21,14 @@
Miku_Oled oled; Miku_Oled oled;
char buf[20]; char buf[20];
void setup(int argc,char *argv[]) void setup()
{ {
sayHello(); sayHello();
oled.begin(); oled.begin();
oled.clearDisplay(); oled.clearDisplay();
int i; int i;
for(i=1;i<argc;i++){ for(i=1;i<lu_argc;i++){
sprintf(buf,"%s\n",argv[i]); sprintf(buf,"%s\n",lu_argv[i]);
oled.drawText(buf); oled.drawText(buf);
oled.display(); oled.display();
} }

BIN
libMikuDuino.so Executable file

Binary file not shown.