globaldefs.h@2:d6e572640dcc, 2010-12-30 (annotated)
- Committer:
- Midimetric
- Date:
- Thu Dec 30 16:49:46 2010 +0000
- Revision:
- 2:d6e572640dcc
- Parent:
- 1:9d081c7fff45
- Child:
- 4:545e25d4c3d8
- Font structure: compacted size reduce overall bin by 8K
- Flush() overrides allows to update part of the screen only
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Midimetric | 2:d6e572640dcc | 1 | #ifndef GLOBALDEFS_H |
Midimetric | 2:d6e572640dcc | 2 | #define GLOBALDEFS_H |
Midimetric | 2:d6e572640dcc | 3 | |
Midimetric | 2:d6e572640dcc | 4 | /// SPI frequency for method DogMLCD::Flush() |
Midimetric | 2:d6e572640dcc | 5 | #define DOGMLCD_MHZ 5000000 |
Midimetric | 2:d6e572640dcc | 6 | |
Midimetric | 2:d6e572640dcc | 7 | #ifndef ORDER |
Midimetric | 2:d6e572640dcc | 8 | #define ORDER(a,b) if( a > b ) { int c = a; a = b; b = c; } |
Midimetric | 2:d6e572640dcc | 9 | #endif |
Midimetric | 2:d6e572640dcc | 10 | #ifndef BOUND |
Midimetric | 2:d6e572640dcc | 11 | #define BOUND(a,b,c) if( a < b ) a = b; else if( a > c ) a = c; |
Midimetric | 2:d6e572640dcc | 12 | #endif |
Midimetric | 2:d6e572640dcc | 13 | |
Midimetric | 2:d6e572640dcc | 14 | const unsigned char DOGMLCD_on[] = { 1, 2, 4, 8, 16, 32, 64, 128 }; |
Midimetric | 2:d6e572640dcc | 15 | const unsigned char DOGMLCD_off[]= { 254, 253, 251, 247, 239, 223, 191, 127 }; |
Midimetric | 2:d6e572640dcc | 16 | |
Midimetric | 2:d6e572640dcc | 17 | /// Bit mpath operation (raster) |
Midimetric | 2:d6e572640dcc | 18 | typedef enum{ poke, wipe, inv } doggy_op; |
Midimetric | 2:d6e572640dcc | 19 | |
Midimetric | 0:601fd83c75e0 | 20 | #endif |