small lu's code
This commit is contained in:
parent
85f3555663
commit
9c4eda25d7
@ -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.
|
||||
|
||||
@ -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
BIN
MikuDuino.o
Normal file
Binary file not shown.
BIN
MikuOled.o
Normal file
BIN
MikuOled.o
Normal file
Binary file not shown.
BIN
MikuRelay.o
Normal file
BIN
MikuRelay.o
Normal file
Binary file not shown.
BIN
MikuSHT2x.o
Normal file
BIN
MikuSHT2x.o
Normal file
Binary file not shown.
BIN
examples/arg_oled
Executable file
BIN
examples/arg_oled
Executable file
Binary file not shown.
79
examples/arg_oled.cpp
Normal file → Executable file
79
examples/arg_oled.cpp
Normal file → Executable 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
BIN
libMikuDuino.so
Executable file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user