fix(st7789): Remove extra parameter on disp_spi_send_colors and disp_spi_send_data

This commit is contained in:
C47D 2021-08-26 18:58:36 -05:00
parent e314c7563b
commit 64832c4136

View file

@ -31,7 +31,7 @@ typedef struct {
/********************** /**********************
* STATIC PROTOTYPES * 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_cmd(lv_disp_drv_t * drv, uint8_t cmd);
static void st7789_send_data(lv_disp_drv_t * drv, void *data, uint16_t length); 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(); disp_wait_for_pending_transactions();
display_hal_gpio_dc(drv, 0); 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) static void st7789_send_data(lv_disp_drv_t *drv, void * data, uint16_t length)
{ {
disp_wait_for_pending_transactions(); disp_wait_for_pending_transactions();
display_hal_gpio_dc(drv, 1); 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) static void st7789_send_color(lv_disp_drv_t *drv, void * data, uint16_t length)
{ {
disp_wait_for_pending_transactions(); disp_wait_for_pending_transactions();
display_hal_gpio_dc(drv, 1); 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 */ /* Reset the display, if we don't have a reset pin we use software reset */