Committer:
Midimetric
Date:
Wed Dec 29 09:53:24 2010 +0000
Revision:
0:601fd83c75e0
Child:
1:9d081c7fff45
Alpha version with (poke, wipe, inv, linev, lineh, frame, rect, xchar, xfont)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Midimetric 0:601fd83c75e0 1 #ifndef GLOBALDEFS_H
Midimetric 0:601fd83c75e0 2 #define GLOBALDEFS_H
Midimetric 0:601fd83c75e0 3
Midimetric 0:601fd83c75e0 4 #define DOGMLCD_MHZ 5000000
Midimetric 0:601fd83c75e0 5
Midimetric 0:601fd83c75e0 6 #ifndef ORDER
Midimetric 0:601fd83c75e0 7 #define ORDER(a,b) if( a > b ) { int c = a; a = b; b = c; }
Midimetric 0:601fd83c75e0 8 #endif
Midimetric 0:601fd83c75e0 9 #ifndef BOUND
Midimetric 0:601fd83c75e0 10 #define BOUND(a,b,c) if( a < b ) a = b; else if( a > c ) a = c;
Midimetric 0:601fd83c75e0 11 #endif
Midimetric 0:601fd83c75e0 12
Midimetric 0:601fd83c75e0 13 const unsigned char DOGMLCD_on[] = { 1, 2, 4, 8, 16, 32, 64, 128 };
Midimetric 0:601fd83c75e0 14 const unsigned char DOGMLCD_off[]= { 254, 253, 251, 247, 239, 223, 191, 127 };
Midimetric 0:601fd83c75e0 15
Midimetric 0:601fd83c75e0 16 typedef enum{ poke, wipe, inv} doggy_op;
Midimetric 0:601fd83c75e0 17
Midimetric 0:601fd83c75e0 18 #endif