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:
parent
8429172c89
commit
26bf4ec6fb
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user