1 #ifndef _TWR_LS013B7DH03_H
2 #define _TWR_LS013B7DH03_H
5 #include <twr_scheduler.h>
16 #if TWR_LS013B7DH03_400x200 == 1
18 #define TWR_LS013B7DH03_WIDTH 400
19 #define TWR_LS013B7DH03_HEIGHT 240
21 #define TWR_LS013B7DH03_WIDTH 128
22 #define TWR_LS013B7DH03_HEIGHT 128
26 #define TWR_LS013B7DH03_FRAMEBUFFER_SIZE (1 + ((1+(TWR_LS013B7DH03_WIDTH / 8)+1) * TWR_LS013B7DH03_HEIGHT) + 1)
33 uint8_t _framebuffer[TWR_LS013B7DH03_FRAMEBUFFER_SIZE];
36 bool (*_pin_cs_set)(
bool state);
bool twr_ls013b7dh03_is_ready(twr_ls013b7dh03_t *self)
Check if lcd is ready for commands.
twr_gfx_caps_t twr_ls013b7dh03_get_caps(twr_ls013b7dh03_t *self)
Get capabilities.
const twr_gfx_driver_t * twr_ls013b7dh03_get_driver(void)
Get Lcd driver.
bool twr_ls013b7dh03_clear_memory_command(twr_ls013b7dh03_t *self)
Send Lcd clear memory command.
uint32_t twr_ls013b7dh03_get_pixel(twr_ls013b7dh03_t *self, int x, int y)
Lcd get pixel.
void twr_ls013b7dh03_clear(twr_ls013b7dh03_t *self)
Clear.
bool twr_ls013b7dh03_update(twr_ls013b7dh03_t *self)
Lcd update, send data.
void twr_ls013b7dh03_draw_pixel(twr_ls013b7dh03_t *self, int x, int y, uint32_t color)
Lcd draw pixel.
void twr_ls013b7dh03_init(twr_ls013b7dh03_t *self, bool(*pin_cs_set)(bool state))
Initialize lcd driver.
size_t twr_scheduler_task_id_t
Task ID assigned by scheduler.
Display driver interface.