MCPcopy Create free account
hub / github.com/PricelessToolkit/MailBoxGuard / init

Method init

Code/Arduino_libraries/SSD1306/OLEDDisplay.cpp:99–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99bool OLEDDisplay::init() {
100
101 BufferOffset = getBufferOffset();
102
103 if(!allocateBuffer()) {
104 return false;
105 }
106
107 sendInitCommands();
108 resetDisplay();
109
110 return true;
111}
112
113void OLEDDisplay::end() {
114 if (this->buffer) { free(this->buffer - BufferOffset); this->buffer = NULL; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected