36 #ifndef SIF_SIF_SSD1681_H
37 #define SIF_SIF_SSD1681_H
47 #ifndef CASCODA_CHILI2_CONFIG
48 #error CASCODA_CHILI2_CONFIG has to be defined! Please include the file "cascoda_chili_config.h"
68 #define SIF_SSD1681_BUSY_PIN 31
70 #if (CASCODA_CHILI2_CONFIG == 2)
71 #define SIF_SSD1681_RST_PIN 5
73 #define SIF_SSD1681_RST_PIN 15
76 #define SIF_SSD1681_DC_PIN 34
80 #define SIF_SSD1681_BUSY_TIMEOUT 5000
83 #define SIF_SSD1681_WIDTH_PHYSICAL 200
84 #define SIF_SSD1681_HEIGHT_PHYSICAL 200
86 #ifdef EPAPER_FULL_RESOLUTION
87 #define SIF_SSD1681_WIDTH_WINDOW SIF_SSD1681_WIDTH_PHYSICAL
88 #define SIF_SSD1681_HEIGHT_WINDOW SIF_SSD1681_HEIGHT_PHYSICAL
90 #define SIF_SSD1681_WIDTH SIF_SSD1681_WIDTH_PHYSICAL
91 #define SIF_SSD1681_HEIGHT SIF_SSD1681_HEIGHT_PHYSICAL
97 #define SIF_SSD1681_WIDTH_WINDOW 192
98 #define SIF_SSD1681_HEIGHT_WINDOW 200
104 #define SIF_SSD1681_WIDTH (SIF_SSD1681_WIDTH_WINDOW / 2)
105 #define SIF_SSD1681_HEIGHT (SIF_SSD1681_WIDTH_WINDOW / 2)
109 #define ARRAY_SIZE (SIF_SSD1681_HEIGHT * SIF_SSD1681_WIDTH / 8)
Global error declarations for use across the Cascoda SDK.
void SIF_SSD1681_Deinitialise(void)
EINK De-Initialisation.
Definition: sif_ssd1681.c:628
void SIF_SSD1681_DisplayFrame(void)
Causes the eink to display what is currently in its RAM, using the full update process.
Definition: sif_ssd1681.c:787
void SIF_SSD1681_ClearDisplay(void)
Clears the display.
Definition: sif_ssd1681.c:645
void SIF_SSD1681_SetFrameMemory(const uint8_t *image, bool full_resolution)
Copies the image into the eink display's RAM, for full update.
Definition: sif_ssd1681.c:714
bool SIF_SSD1681_IsAsleep(void)
Function which reports the sleep status of the eink display.
Definition: sif_ssd1681.c:587
void SIF_SSD1681_DeepSleep(void)
Enter deep sleep mode.
Definition: sif_ssd1681.c:688
void SIF_SSD1681_SetFrameMemoryPartial(const uint8_t *image)
Copies the image into the eink display's RAM, for partial update.
Definition: sif_ssd1681.c:751
void SIF_SSD1681_DisplayPartFrame(void)
Causes the eink to display what is currently in its RAM, using the partial update process.
Definition: sif_ssd1681.c:792
void SIF_SSD1681_DisplayPartBaseImageWhite(void)
Causes the eink to display a white image, to be used as a "base" image for subsequent partial updates...
Definition: sif_ssd1681.c:797
void SIF_SSD1681_StrongClearDisplay(void)
Clears the display many times to make sure there is no ghost image.
Definition: sif_ssd1681.c:681
ca_error SIF_SSD1681_overlay_qr_code(const char *text, uint8_t *image, uint8_t scale, uint8_t x, uint8_t y)
Creates a QR code and overlays it on top of a pre-existing image at the given coordinates.
Definition: sif_ssd1681.c:697
SIF_SSD1681_Update_Mode
Definition: sif_ssd1681.h:113
ca_error SIF_SSD1681_Initialise(void)
EINK Initialisation.
Definition: sif_ssd1681.c:592
@ PARTIAL_UPDATE
Definition: sif_ssd1681.h:115
@ FULL_UPDATE
Definition: sif_ssd1681.h:114
ca_error
Cascoda error type.
Definition: ca821x_error.h:51