X-Git-Url: http://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/2e18bf4e11b78ec045d27baac233f1337b0d8340..9f4d9c8e095ee37b411008e81e6a12e7c20cb9c5:/drivers/lcd/tft/hw/ssd1331.h diff --git a/drivers/lcd/tft/hw/ssd1331.h b/drivers/lcd/tft/hw/ssd1331.h index bd98594..3dd4bc8 100644 --- a/drivers/lcd/tft/hw/ssd1331.h +++ b/drivers/lcd/tft/hw/ssd1331.h @@ -41,6 +41,14 @@ #include "drivers/lcd/tft/lcd.h" #include "core/gpio/gpio.h" +// Select one of these defines to set the pixel color order +#define SSD1331_COLORORDER_RGB +// #define SSD1331_COLORORDER_BGR + +#if defined SSD1331_COLORORDER_RGB && defined SSD1331_COLORORDER_BGR + #error "RGB and BGR can not both be defined for SSD1331_COLORODER." +#endif + // Control pins #define SSD1331_SID_PORT 2 // DAT #define SSD1331_SID_PIN 1