Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
gfx_driver.h
Go to the documentation of this file.
1 /*********************************************************************
2 This is a header file for the gfx driver
3 
4 Copyright 2023 Cascoda LTD.
5 *********************************************************************/
6 #ifndef GFX_DRIVER_H
7 #define GFX_DRIVER_H
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 #ifdef EPAPER_2_9_INCH
14 #include "sif_il3820.h"
15 
16 #define LCDWIDTH SIF_IL3820_WIDTH
17 #define LCDHEIGHT SIF_IL3820_HEIGHT
18 #elif defined EPAPER_WAVESHARE_1_54_INCH
19 #include "sif_ssd1681.h"
20 
21 #define LCDWIDTH SIF_SSD1681_WIDTH
22 #define LCDHEIGHT SIF_SSD1681_HEIGHT
23 #elif defined EPAPER_MIKROE_1_54_INCH
24 #include "sif_ssd1608.h"
25 
26 #define LCDWIDTH SIF_SSD1608_WIDTH
27 #define LCDHEIGHT SIF_SSD1608_HEIGHT
28 #endif
29 
30 #define BLACK 0
31 #define WHITE 1
32 
33 // retrieve the frame buffer
34 uint8_t* get_framebuffer(void);
35 // clear the frame buffer
36 void gfx_drv_clearDisplay(void);
37 // draw pixel in the frame buffer
38 void gfx_drv_drawPixel(int16_t x, int16_t y, uint16_t color);
39 // set the low level rotation
40 void gfx_drv_setRotation(uint16_t rotation);
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 
46 #endif
void gfx_drv_setRotation(uint16_t rotation)
Definition: gfx_driver.c:169
uint8_t * get_framebuffer(void)
Definition: gfx_driver.c:40
void gfx_drv_drawPixel(int16_t x, int16_t y, uint16_t color)
Definition: gfx_driver.c:115
void gfx_drv_clearDisplay(void)
Definition: gfx_driver.c:158