36 #ifndef SIF_SIF_SSD1608_H
37 #define SIF_SIF_SSD1608_H
63 #define SIF_SSD1608_BUSY_PIN 31
65 #if (CASCODA_CHILI2_CONFIG == 2)
66 #define SIF_SSD1608_RST_PIN 5
68 #define SIF_SSD1608_RST_PIN 15
71 #define SIF_SSD1608_DC_PIN 34
75 #define SIF_SSD1608_BUSY_TIMEOUT 4000
78 #define SIF_SSD1608_WIDTH_PHYSICAL 200
79 #define SIF_SSD1608_HEIGHT_PHYSICAL 200
81 #ifdef EPAPER_FULL_RESOLUTION
82 #define SIF_SSD1608_WIDTH_WINDOW SIF_SSD1608_WIDTH_PHYSICAL
83 #define SIF_SSD1608_HEIGHT_WINDOW SIF_SSD1608_HEIGHT_PHYSICAL
85 #define SIF_SSD1608_WIDTH SIF_SSD1608_WIDTH_PHYSICAL
86 #define SIF_SSD1608_HEIGHT SIF_SSD1608_HEIGHT_PHYSICAL
92 #define SIF_SSD1608_WIDTH_WINDOW 192
93 #define SIF_SSD1608_HEIGHT_WINDOW 200
99 #define SIF_SSD1608_WIDTH (SIF_SSD1608_WIDTH_WINDOW / 2)
100 #define SIF_SSD1608_HEIGHT (SIF_SSD1608_WIDTH_WINDOW / 2)
104 #define ARRAY_SIZE (SIF_SSD1608_HEIGHT * SIF_SSD1608_WIDTH / 8)
121 #define SIF_SSD1608_TUPDATE_PARTIAL 350
125 #define SIF_SSD1608_TUPDATE_FULL 1050
Global error declarations for use across the Cascoda SDK.
SIF_SSD1608_Update_Mode
Definition: sif_ssd1608.h:108
void SIF_SSD1608_DisplayImageNoWait(const uint8_t *image, SIF_SSD1608_Clear_Mode mode, bool full_resolution)
Same as SIF_SSD1608_DisplayImage() but does not wait for busy.
Definition: sif_ssd1608.c:682
bool sif_ssd1608_display_is_busy
Definition: sif_ssd1608.c:68
void SIF_SSD1608_StrongClearDisplay(void)
Clears the display many times to make sure there is no ghost image.
Definition: sif_ssd1608.c:631
SIF_SSD1608_Clear_Mode
Definition: sif_ssd1608.h:115
void SIF_SSD1608_Deinitialise(void)
EINK De-Initialisation.
Definition: sif_ssd1608.c:381
ca_error SIF_SSD1608_PowerDown(void *aContext)
callback function for power-down when not waiting for busy signal
Definition: sif_ssd1608.c:700
ca_error SIF_SSD1608_Initialise(SIF_SSD1608_Update_Mode mode)
EINK Initialisation.
Definition: sif_ssd1608.c:339
void SIF_SSD1608_DeepSleep(void)
Enter deep sleep mode.
Definition: sif_ssd1608.c:638
ca_error SIF_SSD1608_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_ssd1608.c:646
void SIF_SSD1608_ClearDisplay(void)
Clears the display.
Definition: sif_ssd1608.c:607
void SIF_SSD1608_DisplayImage(const uint8_t *image, SIF_SSD1608_Clear_Mode mode, bool full_resolution)
Follows Routines for clearing, waiting and displaying the image.
Definition: sif_ssd1608.c:663
@ PARTIAL_UPDATE
Definition: sif_ssd1608.h:110
@ FULL_UPDATE
Definition: sif_ssd1608.h:109
@ WITH_CLEAR
Definition: sif_ssd1608.h:116
@ WITHOUT_CLEAR
Definition: sif_ssd1608.h:117
ca_error
Cascoda error type.
Definition: ca821x_error.h:51