summaryrefslogtreecommitdiff
path: root/drivers/painter/ili9xxx/qp_ili9488.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/painter/ili9xxx/qp_ili9488.c')
-rw-r--r--drivers/painter/ili9xxx/qp_ili9488.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/painter/ili9xxx/qp_ili9488.c b/drivers/painter/ili9xxx/qp_ili9488.c
index 63deaf5f2e..fd05db8751 100644
--- a/drivers/painter/ili9xxx/qp_ili9488.c
+++ b/drivers/painter/ili9xxx/qp_ili9488.c
@@ -41,7 +41,9 @@ __attribute__((weak)) bool qp_ili9488_init(painter_device_t device, painter_rota
41 ILI9XXX_CMD_DISPLAY_ON, 20, 0 41 ILI9XXX_CMD_DISPLAY_ON, 20, 0
42 }; 42 };
43 // clang-format on 43 // clang-format on
44 qp_comms_bulk_command_sequence(device, ili9488_init_sequence, sizeof(ili9488_init_sequence)); 44 if (!qp_comms_bulk_command_sequence(device, ili9488_init_sequence, sizeof(ili9488_init_sequence))) {
45 return false;
46 }
45 47
46 // Configure the rotation (i.e. the ordering and direction of memory writes in GRAM) 48 // Configure the rotation (i.e. the ordering and direction of memory writes in GRAM)
47 const uint8_t madctl[] = { 49 const uint8_t madctl[] = {
@@ -50,9 +52,7 @@ __attribute__((weak)) bool qp_ili9488_init(painter_device_t device, painter_rota
50 [QP_ROTATION_180] = ILI9XXX_MADCTL_BGR | ILI9XXX_MADCTL_MX, 52 [QP_ROTATION_180] = ILI9XXX_MADCTL_BGR | ILI9XXX_MADCTL_MX,
51 [QP_ROTATION_270] = ILI9XXX_MADCTL_BGR | ILI9XXX_MADCTL_MV, 53 [QP_ROTATION_270] = ILI9XXX_MADCTL_BGR | ILI9XXX_MADCTL_MV,
52 }; 54 };
53 qp_comms_command_databyte(device, ILI9XXX_SET_MEM_ACS_CTL, madctl[rotation]); 55 return qp_comms_command_databyte(device, ILI9XXX_SET_MEM_ACS_CTL, madctl[rotation]);
54
55 return true;
56} 56}
57 57
58//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 58////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////