1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/lvgl: only swap byte when ili9341 is used

This commit is contained in:
Alexandre Abadie 2021-12-22 16:09:44 +01:00
parent 8429172c89
commit 26bf4ec6fb
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -22,6 +22,7 @@ extern "C" {
#endif
#include <stdint.h>
#include "kernel_defines.h"
#include "lvgl_riot_conf.h"
/*====================
@ -50,7 +51,11 @@ extern "C" {
/* Swap the 2 bytes of RGB565 color.
* Useful if the display has a 8 bit interface (e.g. SPI)*/
#ifndef LV_COLOR_16_SWAP
#if IS_USED(MODULE_ILI9341)
#define LV_COLOR_16_SWAP 1
#else
#define LV_COLOR_16_SWAP 0
#endif
#endif
/* 1: Enable screen transparency.