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[])
{
//by Small Lu(mo10), Sky Arrow's first son.

View File

@ -37,7 +37,7 @@
void setup();
void loop();
int lu_argc;
char **lu_argv;
extern int lu_argc;
extern char **lu_argv;
#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.

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

@ -1,39 +1,40 @@
#include "MikuDuino.h"
#include "MikuOled.h"
#include <stdio.h>
#include<stdlib.h>
/*
* 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<argc;i++){
sprintf(buf,"%s\n",argv[i]);
oled.drawText(buf);
oled.display();
}
}
void loop()
{
exit(0);
}
#include "MikuDuino.h"
#include "MikuOled.h"
#include <stdio.h>
#include <stdlib.h>
/*
* 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<lu_argc;i++){
sprintf(buf,"%s\n",lu_argv[i]);
oled.drawText(buf);
oled.display();
}
}
void loop()
{
exit(0);
}

BIN
libMikuDuino.so Executable file

Binary file not shown.