#pragma once
#include <Arduino.h>
#include <SPI.h>
#include <FS.h>

void epd_init();
void epd_sleep();
void epd_fill(uint8_t color);
void epd_draw_image_from_file(fs::File& f);

// Draw a QR code centred on the display.
// bg/fg are EPD color nibbles (COLOR_WHITE / COLOR_BLACK).
struct QRCode;
void epd_draw_qr(QRCode* qr, uint8_t cellPx, uint8_t bg, uint8_t fg);
