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.
9
examples/arg_oled.cpp
Normal file → Executable file
9
examples/arg_oled.cpp
Normal file → Executable file
@ -1,7 +1,8 @@
|
||||
#include "MikuDuino.h"
|
||||
#include "MikuOled.h"
|
||||
#include <stdio.h>
|
||||
#include<stdlib.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/*
|
||||
* arg_oled.cpp:
|
||||
*
|
||||
@ -20,14 +21,14 @@
|
||||
Miku_Oled oled;
|
||||
char buf[20];
|
||||
|
||||
void setup(int argc,char *argv[])
|
||||
void setup()
|
||||
{
|
||||
sayHello();
|
||||
oled.begin();
|
||||
oled.clearDisplay();
|
||||
int i;
|
||||
for(i=1;i<argc;i++){
|
||||
sprintf(buf,"%s\n",argv[i]);
|
||||
for(i=1;i<lu_argc;i++){
|
||||
sprintf(buf,"%s\n",lu_argv[i]);
|
||||
oled.drawText(buf);
|
||||
oled.display();
|
||||
}
|
||||
|
||||
BIN
libMikuDuino.so
Executable file
BIN
libMikuDuino.so
Executable file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user