fix(st7789): Remove extra parameter on disp_spi_send_colors and disp_spi_send_data
This commit is contained in:
parent
e314c7563b
commit
64832c4136
|
@ -31,7 +31,7 @@ typedef struct {
|
|||
/**********************
|
||||
* STATIC PROTOTYPES
|
||||
**********************/
|
||||
static void st7789_set_orientation(uint8_t orientation);
|
||||
static void st7789_set_orientation(lv_disp_drv_t *drv, uint8_t orientation);
|
||||
|
||||
static void st7789_send_cmd(lv_disp_drv_t * drv, uint8_t cmd);
|
||||
static void st7789_send_data(lv_disp_drv_t * drv, void *data, uint16_t length);
|
||||
|
@ -179,21 +179,21 @@ static void st7789_send_cmd(lv_disp_drv_t *drv, uint8_t cmd)
|
|||
{
|
||||
disp_wait_for_pending_transactions();
|
||||
display_hal_gpio_dc(drv, 0);
|
||||
disp_spi_send_data(drv, &cmd, 1);
|
||||
disp_spi_send_data(&cmd, 1);
|
||||
}
|
||||
|
||||
static void st7789_send_data(lv_disp_drv_t *drv, void * data, uint16_t length)
|
||||
{
|
||||
disp_wait_for_pending_transactions();
|
||||
display_hal_gpio_dc(drv, 1);
|
||||
disp_spi_send_data(drv, data, length);
|
||||
disp_spi_send_data(data, length);
|
||||
}
|
||||
|
||||
static void st7789_send_color(lv_disp_drv_t *drv, void * data, uint16_t length)
|
||||
{
|
||||
disp_wait_for_pending_transactions();
|
||||
display_hal_gpio_dc(drv, 1);
|
||||
disp_spi_send_colors(drv, data, length);
|
||||
disp_spi_send_colors(data, length);
|
||||
}
|
||||
|
||||
/* Reset the display, if we don't have a reset pin we use software reset */
|
||||
|
|
Loading…
Reference in a new issue