MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / clearScreen

Method clearScreen

Drivers/EPDiyDisplay/Source/EpdiyDisplay.cpp:267–281  ·  view source on GitHub ↗

EPD functions

Source from the content-addressed store, hash-verified

265
266// EPD functions
267void EpdiyDisplay::clearScreen() {
268 if (!initialized) {
269 LOG_E(TAG, "EPD not initialized");
270 return;
271 }
272
273 if (!powered) {
274 setPowerOn(true);
275 }
276
277 epd_clear();
278
279 // Also clear the framebuffer
280 epd_hl_set_all_white(&highlevelState);
281}
282
283void EpdiyDisplay::clearArea(EpdRect area) {
284 if (!initialized) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected