#ifndef ICONS_H
#define ICONS_H

#include <Arduino.h>
#include <Adafruit_ST7796S.h>

//--------------------------------------------------------------------
// Image structure
//--------------------------------------------------------------------
typedef struct
{
    const uint8_t *data;
    uint16_t width;
    uint16_t height;
    uint8_t dataSize;
} tImage;

//--------------------------------------------------------------------
// RLE image renderer
//--------------------------------------------------------------------
void drawRLEImage(Adafruit_ST7796S &tft,
                  int16_t x,
                  int16_t y,
                  const uint8_t *src,
                  uint16_t width,
                  uint16_t height);

//--------------------------------------------------------------------
// Icon wrappers
//--------------------------------------------------------------------
void drawInverterIcon(Adafruit_ST7796S &tft,
                      int16_t x,
                      int16_t y);

#endif