Frank Weissenborn
/
DogMTest
Testprogramm DogM
Revision 4:99738699678d, committed 2011-01-12
- Comitter:
- FrankWeissenborn
- Date:
- Wed Jan 12 21:28:22 2011 +0000
- Parent:
- 3:20c91507bab6
- Commit message:
Changed in this revision
diff -r 20c91507bab6 -r 99738699678d Dogm162.lib --- a/Dogm162.lib Thu Dec 23 12:37:05 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/FrankWeissenborn/code/Dogm162/#6cd82deac19d
diff -r 20c91507bab6 -r 99738699678d Dogm16x.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Dogm16x.lib Wed Jan 12 21:28:22 2011 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/FrankWeissenborn/code/Dogm16x/#a6c719e188f1
diff -r 20c91507bab6 -r 99738699678d defines.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/defines.h Wed Jan 12 21:28:22 2011 +0000 @@ -0,0 +1,15 @@ +#ifndef _DEFINES_H +#define _DEFINES_H + +// ---------------------------------------------------------------------------- +// debug output +// ---------------------------------------------------------------------------- +#define DEBUG + +#ifdef DEBUG +# define DEBUGOUT(x,y...) printf(x, ##y); +#else +# define DEBUGOUT(x,y...) +#endif + +#endif
diff -r 20c91507bab6 -r 99738699678d main.cpp --- a/main.cpp Thu Dec 23 12:37:05 2010 +0000 +++ b/main.cpp Wed Jan 12 21:28:22 2011 +0000 @@ -1,8 +1,8 @@ #include "mbed.h" -#include "DogM162.h" +#include "DogM16x.h" -DogM162 display(p22, p23, p24, p25, p19, p20, p18, p21); //(db0,db1,db2,db3),_rw(rw),_rs(rs),_enable(enable),_reset(reset) +DogM16x display(p22, p23, p24, p25, p19, p20, p18, p21, DogM16x_DogM163); //(db0,db1,db2,db3),_rw(rw),_rs(rs),_enable(enable),_reset(reset) int main() { @@ -11,7 +11,7 @@ display.WriteString("Hallo"); wait(2); display.Clear(); - display.WriteString("Hallo22", 2 , DogM162::LINE_2); + display.WriteString("Hallo22", 2 , DogM16x_LINE_TWO); }