Adafruit ImageReader Library
Adafruit_ImageReader_EPD.h
Go to the documentation of this file.
1 
15 #ifndef __ADAFRUIT_IMAGE_READER_EPD_H__
16 #define __ADAFRUIT_IMAGE_READER_EPD_H__
17 
18 #include "Adafruit_EPD.h"
19 #include "Adafruit_ImageReader.h"
20 
21 #define MIN_SZ_BMP_HEADER 54
22 #define BMP_HEADER 0x4D42
23 
24 
29 public:
30  void draw(Adafruit_EPD &epd, int16_t x, int16_t y);
31 
32 protected:
33  friend class Adafruit_ImageReader_EPD;
34 };
35 
49 public:
50  Adafruit_ImageReader_EPD(FatVolume &fs);
52  ImageReturnCode drawBMP(char *filename, Adafruit_EPD &epd, int16_t x,
53  int16_t y, boolean transact = true);
54  ImageReturnCode drawBMP(const uint8_t *bmp, size_t bmp_len, Adafruit_EPD &epd,
55  int16_t x, int16_t y);
56 
57  static uint8_t mapColorForDisplay(uint8_t r, uint8_t g, uint8_t b,
58  thinkinkmode_t mode);
59 
60 private:
61  ImageReturnCode coreBMP(char *filename, Adafruit_EPD *epd, uint16_t *dest,
62  int16_t x, int16_t y, Adafruit_Image_EPD *img,
63  boolean transact);
64  ImageReturnCode coreBMP(const uint8_t *bmp, size_t bmp_len, Adafruit_EPD *epd,
65  int16_t x, int16_t y);
66 };
67 
68 #endif // __ADAFRUIT_IMAGE_READER_EPD_H__
An optional adjunct to Adafruit_EPD that reads RGB BMP images (maybe others in the future) from a fla...
Definition: Adafruit_ImageReader_EPD.h:48
Data bundle returned with an image loaded to RAM. Used by ImageReader.loadBMP() and Image...
Definition: Adafruit_ImageReader_EPD.h:28
void draw(Adafruit_EPD &epd, int16_t x, int16_t y)
Draw image to an Adafruit ePaper-type display.
Definition: Adafruit_ImageReader_EPD.cpp:101
An optional adjunct to Adafruit_SPITFT that reads RGB BMP images (maybe others in the future) from a ...
Definition: Adafruit_ImageReader.h:95
friend class Adafruit_ImageReader_EPD
Loading occurs here.
Definition: Adafruit_ImageReader_EPD.h:33
Data bundle returned with an image loaded to RAM. Used by ImageReader.loadBMP() and Image...
Definition: Adafruit_ImageReader.h:41
ImageReturnCode
Definition: Adafruit_ImageReader.h:22