Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/SSD1306I2C.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,10 @@ class SSD1306I2C : public OLEDDisplay {
}

private:
// Reserve 1 byte before the framebuffer so display() can safely write the
// I2C control byte (0x40) to buffer[-1] without accessing unallocated memory.
int getBufferOffset(void) {
return 0;
return 1;
}

inline void sendCommand(uint8_t command) __attribute__((always_inline)) {
Expand Down
Loading