Rev 7 | Rev 10 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7 | Rev 9 | ||
---|---|---|---|
Line 36... | Line 36... | ||
36 | SSD1306_128_64 128x64 pixel display |
36 | SSD1306_128_64 128x64 pixel display |
37 | 37 | ||
38 | SSD1306_128_32 128x32 pixel display |
38 | SSD1306_128_32 128x32 pixel display |
39 | 39 | ||
40 | -----------------------------------------------------------------------*/ |
40 | -----------------------------------------------------------------------*/ |
41 | #define SSD1306_128_64 |
41 | #define SSD1306_132_64 |
42 | /*=========================================================================*/ |
42 | /*=========================================================================*/ |
43 | 43 | ||
44 | #if defined SSD1306_128_64 && defined SSD1306_128_32 |
44 | #if defined SSD1306_128_64 && defined SSD1306_128_32 |
45 | #error "Only one SSD1306 display can be specified at once in SSD1306.h" |
45 | #error "Only one SSD1306 display can be specified at once in SSD1306.h" |
46 | #endif |
46 | #endif |
47 | #if !defined SSD1306_128_64 && !defined SSD1306_128_32 |
47 | #if !defined SSD1306_128_64 && !defined SSD1306_128_32 && !defined SSD1306_132_64 |
48 | #error "At least one SSD1306 display must be specified in SSD1306.h" |
48 | #error "At least one SSD1306 display must be specified in SSD1306.h" |
49 | #endif |
49 | #endif |
50 | 50 | ||
51 | // the 1106 has a RAM width of 128 |
51 | // the 1106 has a RAM width of 128 |
52 | #if defined SSD1306_128_64 |
52 | #if defined SSD1306_128_64 |
53 | #define SSD1306_LCDWIDTH 128 |
53 | #define SSD1306_LCDWIDTH 128 |
Line 57... | Line 57... | ||
57 | #if defined SSD1306_128_32 |
57 | #if defined SSD1306_128_32 |
58 | #define SSD1306_LCDWIDTH 128 |
58 | #define SSD1306_LCDWIDTH 128 |
59 | #define SSD1306_LCDHEIGHT 32 |
59 | #define SSD1306_LCDHEIGHT 32 |
60 | #define SSD1306_RAMWIDTH 128 |
60 | #define SSD1306_RAMWIDTH 128 |
61 | #endif |
61 | #endif |
- | 62 | #if defined SSD1306_132_64 |
|
- | 63 | #define SSD1306_LCDWIDTH 128 |
|
- | 64 | #define SSD1306_LCDHEIGHT 64 |
|
- | 65 | #define SSD1306_RAMWIDTH 132 |
|
- | 66 | #endif |
|
- | 67 | ||
62 | 68 | ||
63 | #define SSD1306_SETCONTRAST 0x81 |
69 | #define SSD1306_SETCONTRAST 0x81 |
64 | #define SSD1306_DISPLAYALLON_RESUME 0xA4 |
70 | #define SSD1306_DISPLAYALLON_RESUME 0xA4 |
65 | #define SSD1306_DISPLAYALLON 0xA5 |
71 | #define SSD1306_DISPLAYALLON 0xA5 |
66 | #define SSD1306_NORMALDISPLAY 0xA6 |
72 | #define SSD1306_NORMALDISPLAY 0xA6 |