Question about ILI9488 VS ILI9341 Driver

I am working with an ILI9488 display module and want to know if I can use the ILI9341 .c and .h driver for STM32 as a reference or the ILI9488.c/.h for ESP32. Some of the registries are not available on ILI9488 but some ILI9488 drivers offered by other Github contributors still use it(stm32_graphics_display_drivers/ili9488.c at master · RobertoBenjami/stm32_graphics_display_drivers · GitHub). For example,

  1. #define ILI9341_GAMSET 0x26 /* Gamma Set */
  2. #define ILI9341_RGBSET 0x2D /* Color Set (LUT for 16-bit to 18-bit color depth conversion) */
    Regarding the global prototype, do you recommend doing like the ILI9341.c/.h
  • void ili9341_init(void);
  • void ili9341_flush(lv_disp_drv_t * drv, const lv_area_t * area, lv_color_t * color_p);
  • void ili9341_rotate(int degrees, bool bgr);

or as indicated in the template:

  • void lv_port_disp_init(void);
  • void disp_enable_update(void);
  • void disp_disable_update(void);
    Thanks for your help