Firmware SDK
|
Driver for LS013B7DH03 1.28" HR-TFT Memory LCD. More...
Data Structures | |
struct | twr_ls013b7dh03_t |
Instance. More... | |
Macros | |
#define | TWR_LS013B7DH03_WIDTH 128 |
#define | TWR_LS013B7DH03_HEIGHT 128 |
#define | TWR_LS013B7DH03_FRAMEBUFFER_SIZE (1 + ((1+(TWR_LS013B7DH03_WIDTH / 8)+1) * TWR_LS013B7DH03_HEIGHT) + 1) |
Functions | |
void | twr_ls013b7dh03_init (twr_ls013b7dh03_t *self, bool(*pin_cs_set)(bool state)) |
Initialize lcd driver. More... | |
twr_gfx_caps_t | twr_ls013b7dh03_get_caps (twr_ls013b7dh03_t *self) |
Get capabilities. More... | |
bool | twr_ls013b7dh03_is_ready (twr_ls013b7dh03_t *self) |
Check if lcd is ready for commands. More... | |
void | twr_ls013b7dh03_clear (twr_ls013b7dh03_t *self) |
Clear. More... | |
void | twr_ls013b7dh03_draw_pixel (twr_ls013b7dh03_t *self, int x, int y, uint32_t color) |
Lcd draw pixel. More... | |
uint32_t | twr_ls013b7dh03_get_pixel (twr_ls013b7dh03_t *self, int x, int y) |
Lcd get pixel. More... | |
bool | twr_ls013b7dh03_update (twr_ls013b7dh03_t *self) |
Lcd update, send data. More... | |
bool | twr_ls013b7dh03_clear_memory_command (twr_ls013b7dh03_t *self) |
Send Lcd clear memory command. More... | |
const twr_gfx_driver_t * | twr_ls013b7dh03_get_driver (void) |
Get Lcd driver. | |
Driver for LS013B7DH03 1.28" HR-TFT Memory LCD.
void twr_ls013b7dh03_clear | ( | twr_ls013b7dh03_t * | self | ) |
Clear.
[in] | self | Instance |
Definition at line 52 of file twr_ls013b7dh03.c.
Referenced by twr_ls013b7dh03_get_driver().
bool twr_ls013b7dh03_clear_memory_command | ( | twr_ls013b7dh03_t * | self | ) |
Send Lcd clear memory command.
Definition at line 151 of file twr_ls013b7dh03.c.
void twr_ls013b7dh03_draw_pixel | ( | twr_ls013b7dh03_t * | self, |
int | x, | ||
int | y, | ||
uint32_t | color | ||
) |
Lcd draw pixel.
[in] | self | Instance |
[in] | left | Pixels from left edge |
[in] | top | Pixels from top edge |
[in] | color | Pixels state |
Definition at line 66 of file twr_ls013b7dh03.c.
Referenced by twr_ls013b7dh03_get_driver().
twr_gfx_caps_t twr_ls013b7dh03_get_caps | ( | twr_ls013b7dh03_t * | self | ) |
Get capabilities.
[in] | self | Instance |
Definition at line 36 of file twr_ls013b7dh03.c.
Referenced by twr_ls013b7dh03_get_driver().
uint32_t twr_ls013b7dh03_get_pixel | ( | twr_ls013b7dh03_t * | self, |
int | x, | ||
int | y | ||
) |
Lcd get pixel.
[in] | self | Instance |
[in] | left | Pixels from left edge |
[in] | top | Pixels from top edge |
[in] | color | Pixels state |
Definition at line 87 of file twr_ls013b7dh03.c.
Referenced by twr_ls013b7dh03_get_driver().
void twr_ls013b7dh03_init | ( | twr_ls013b7dh03_t * | self, |
bool(*)(bool state) | pin_cs_set | ||
) |
Initialize lcd driver.
[in] | self | Instance |
Definition at line 13 of file twr_ls013b7dh03.c.
Referenced by twr_module_lcd_init().
bool twr_ls013b7dh03_is_ready | ( | twr_ls013b7dh03_t * | self | ) |
Check if lcd is ready for commands.
[in] | self | Instance |
Definition at line 45 of file twr_ls013b7dh03.c.
Referenced by twr_ls013b7dh03_get_driver().
bool twr_ls013b7dh03_update | ( | twr_ls013b7dh03_t * | self | ) |
Lcd update, send data.
[in] | self | Instance |
Definition at line 108 of file twr_ls013b7dh03.c.
Referenced by twr_ls013b7dh03_get_driver().