Commit 04168701 authored by Nicolas Boulicault's avatar Nicolas Boulicault

ST7735: fix RGB/BGR selection issue due to ST7735_XXX vs INITR_XXX confusion

Without this change, color order is always set to RGB,
no matter what ST7735_XXX value is defined in User_Setup.h
parent 333f0f84
......@@ -107,7 +107,7 @@
#define TFT_MAD_RGB 0x00
#ifndef TFT_RGB_ORDER
#if defined(INITR_BLACKTAB) || defined(INITR_GREENTAB2) || defined(INITB)
#if defined(ST7735_BLACKTAB) || defined(ST7735_GREENTAB2) || defined(ST7735_INITB)
#define TFT_MAD_COLOR_ORDER TFT_MAD_RGB
#else
#define TFT_MAD_COLOR_ORDER TFT_MAD_BGR
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment