38#define SSD1306_WIDTH 128
41#define SSD1306_HEIGHT 32
49 0x00, 0x00, 0x00, 0x00, 0x00
50 ,0x00, 0x00, 0x5f, 0x00, 0x00
51 ,0x00, 0x07, 0x00, 0x07, 0x00
52 ,0x14, 0x7f, 0x14, 0x7f, 0x14
53 ,0x24, 0x2a, 0x7f, 0x2a, 0x12
54 ,0x23, 0x13, 0x08, 0x64, 0x62
55 ,0x36, 0x49, 0x55, 0x22, 0x50
56 ,0x00, 0x05, 0x03, 0x00, 0x00
57 ,0x00, 0x1c, 0x22, 0x41, 0x00
58 ,0x00, 0x41, 0x22, 0x1c, 0x00
59 ,0x14, 0x08, 0x3e, 0x08, 0x14
60 ,0x08, 0x08, 0x3e, 0x08, 0x08
61 ,0x00, 0x50, 0x30, 0x00, 0x00
62 ,0x08, 0x08, 0x08, 0x08, 0x08
63 ,0x00, 0x60, 0x60, 0x00, 0x00
64 ,0x20, 0x10, 0x08, 0x04, 0x02
65 ,0x3e, 0x51, 0x49, 0x45, 0x3e
66 ,0x00, 0x42, 0x7f, 0x40, 0x00
67 ,0x42, 0x61, 0x51, 0x49, 0x46
68 ,0x21, 0x41, 0x45, 0x4b, 0x31
69 ,0x18, 0x14, 0x12, 0x7f, 0x10
70 ,0x27, 0x45, 0x45, 0x45, 0x39
71 ,0x3c, 0x4a, 0x49, 0x49, 0x30
72 ,0x01, 0x71, 0x09, 0x05, 0x03
73 ,0x36, 0x49, 0x49, 0x49, 0x36
74 ,0x06, 0x49, 0x49, 0x29, 0x1e
75 ,0x00, 0x36, 0x36, 0x00, 0x00
76 ,0x00, 0x56, 0x36, 0x00, 0x00
77 ,0x08, 0x14, 0x22, 0x41, 0x00
78 ,0x14, 0x14, 0x14, 0x14, 0x14
79 ,0x00, 0x41, 0x22, 0x14, 0x08
80 ,0x02, 0x01, 0x51, 0x09, 0x06
81 ,0x32, 0x49, 0x79, 0x41, 0x3e
82 ,0x7e, 0x11, 0x11, 0x11, 0x7e
83 ,0x7f, 0x49, 0x49, 0x49, 0x36
84 ,0x3e, 0x41, 0x41, 0x41, 0x22
85 ,0x7f, 0x41, 0x41, 0x22, 0x1c
86 ,0x7f, 0x49, 0x49, 0x49, 0x41
87 ,0x7f, 0x09, 0x09, 0x09, 0x01
88 ,0x3e, 0x41, 0x49, 0x49, 0x7a
89 ,0x7f, 0x08, 0x08, 0x08, 0x7f
90 ,0x00, 0x41, 0x7f, 0x41, 0x00
91 ,0x20, 0x40, 0x41, 0x3f, 0x01
92 ,0x7f, 0x08, 0x14, 0x22, 0x41
93 ,0x7f, 0x40, 0x40, 0x40, 0x40
94 ,0x7f, 0x02, 0x0c, 0x02, 0x7f
95 ,0x7f, 0x04, 0x08, 0x10, 0x7f
96 ,0x3e, 0x41, 0x41, 0x41, 0x3e
97 ,0x7f, 0x09, 0x09, 0x09, 0x06
98 ,0x3e, 0x41, 0x51, 0x21, 0x5e
99 ,0x7f, 0x09, 0x19, 0x29, 0x46
100 ,0x46, 0x49, 0x49, 0x49, 0x31
101 ,0x01, 0x01, 0x7f, 0x01, 0x01
102 ,0x3f, 0x40, 0x40, 0x40, 0x3f
103 ,0x1f, 0x20, 0x40, 0x20, 0x1f
104 ,0x3f, 0x40, 0x38, 0x40, 0x3f
105 ,0x63, 0x14, 0x08, 0x14, 0x63
106 ,0x07, 0x08, 0x70, 0x08, 0x07
107 ,0x61, 0x51, 0x49, 0x45, 0x43
108 ,0x00, 0x7f, 0x41, 0x41, 0x00
109 ,0x02, 0x04, 0x08, 0x10, 0x20
110 ,0x00, 0x41, 0x41, 0x7f, 0x00
111 ,0x04, 0x02, 0x01, 0x02, 0x04
112 ,0x40, 0x40, 0x40, 0x40, 0x40
113 ,0x00, 0x01, 0x02, 0x04, 0x00
114 ,0x20, 0x54, 0x54, 0x54, 0x78
115 ,0x7f, 0x48, 0x44, 0x44, 0x38
116 ,0x38, 0x44, 0x44, 0x44, 0x20
117 ,0x38, 0x44, 0x44, 0x48, 0x7f
118 ,0x38, 0x54, 0x54, 0x54, 0x18
119 ,0x08, 0x7e, 0x09, 0x01, 0x02
120 ,0x0c, 0x52, 0x52, 0x52, 0x3e
121 ,0x7f, 0x08, 0x04, 0x04, 0x78
122 ,0x00, 0x44, 0x7d, 0x40, 0x00
123 ,0x20, 0x40, 0x44, 0x3d, 0x00
124 ,0x7f, 0x10, 0x28, 0x44, 0x00
125 ,0x00, 0x41, 0x7f, 0x40, 0x00
126 ,0x7c, 0x04, 0x18, 0x04, 0x78
127 ,0x7c, 0x08, 0x04, 0x04, 0x78
128 ,0x38, 0x44, 0x44, 0x44, 0x38
129 ,0x7c, 0x14, 0x14, 0x14, 0x08
130 ,0x08, 0x14, 0x14, 0x18, 0x7c
131 ,0x7c, 0x08, 0x04, 0x04, 0x08
132 ,0x48, 0x54, 0x54, 0x54, 0x20
133 ,0x04, 0x3f, 0x44, 0x40, 0x20
134 ,0x3c, 0x40, 0x40, 0x20, 0x7c
135 ,0x1c, 0x20, 0x40, 0x20, 0x1c
136 ,0x3c, 0x40, 0x30, 0x40, 0x3c
137 ,0x44, 0x28, 0x10, 0x28, 0x44
138 ,0x0c, 0x50, 0x50, 0x50, 0x3c
139 ,0x44, 0x64, 0x54, 0x4c, 0x44
140 ,0x00, 0x08, 0x36, 0x41, 0x00
141 ,0x00, 0x00, 0x7f, 0x00, 0x00
142 ,0x00, 0x41, 0x36, 0x08, 0x00
143 ,0x10, 0x08, 0x08, 0x10, 0x08
144 ,0x78, 0x46, 0x41, 0x46, 0x78
145 ,0x00, 0x3c, 0x7e, 0xe7, 0xc3
146 ,0xc3, 0xe7, 0x7e, 0x3c, 0x00
147 ,0x00, 0x3c, 0x7e, 0xFF, 0xFF
148 ,0xFF, 0xFF, 0x7e, 0x3c, 0x00
183 void setPixel( uint8_t x, uint8_t y );
195 void fillRect( uint8_t x, uint8_t y, uint8_t w, uint8_t h );
202 void clearRect( uint8_t x, uint8_t y, uint8_t w, uint8_t h );
215 void print(
char* str );
227 void line( uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2 );
248 void writeData( uint8_t* data, uint16_t dataSize );
void writeCharacter(uint8_t c)
Write a character to the display.
uint8_t cursorX
X-coordinate of the cursor.
void writeData(uint8_t *data, uint16_t dataSize)
Write data to the display.
bool inverted
If this flag is set, the draw logic will be inverted.
void displayOff()
Turn off the oled panel.
void line(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2)
Print line to the display.
bool begin()
Init function for the display.
uint8_t buffer[SSD1306_WIDTH *SSD1306_HEIGHT/8]
Pixel buffer.
void clearRect(uint8_t x, uint8_t y, uint8_t w, uint8_t h)
Create a cleared rectangle.
void clearPixel(uint8_t x, uint8_t y)
Clear a pixel by location.
void displayOn()
Turn on the oled panel.
uint8_t address
Address of the display.
void update()
Update the content of the panel.
void setPixel(uint8_t x, uint8_t y)
Set a pixel by location.
uint8_t cursorY
Y-coordinate of the cursor.
void clear()
Clear the display.
void print(char *str)
Print a c-string tho the display.
void writeCommand(uint8_t c)
Write command to the display.
void fillRect(uint8_t x, uint8_t y, uint8_t w, uint8_t h)
Create a filled rectangle.
#define SSD1306_HEIGHT
Height of the display module in pixels.
const uint8_t ASCII[] PROGMEM
Font for the display.
#define SSD1306_WIDTH
Width of the display module in pixels.