EPD functions
| 265 | |
| 266 | // EPD functions |
| 267 | void 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 | |
| 283 | void EpdiyDisplay::clearArea(EpdRect area) { |
| 284 | if (!initialized) { |
nothing calls this directly
no outgoing calls
no test coverage detected