| 97 | } |
| 98 | |
| 99 | bool 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 | |
| 113 | void OLEDDisplay::end() { |
| 114 | if (this->buffer) { free(this->buffer - BufferOffset); this->buffer = NULL; } |
nothing calls this directly
no outgoing calls
no test coverage detected