Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Adafruit_ST7735 by
Diff: Adafruit_ST7735.cpp
- Revision:
- 6:7d45da201480
- Parent:
- 5:156b180d2eda
- Child:
- 7:20134e1718b2
--- a/Adafruit_ST7735.cpp Thu Jul 30 10:47:25 2015 +0000 +++ b/Adafruit_ST7735.cpp Thu Jul 30 22:55:47 2015 +0000 @@ -411,7 +411,7 @@ #define MADCTL_MX 0x40 #define MADCTL_MV 0x20 #define MADCTL_ML 0x10 -#define MADCTL_RGB 0x08 +#define MADCTL_RGB 0x00 #define MADCTL_MH 0x04 void Adafruit_ST7735::setRotation(uint8_t m) @@ -546,7 +546,7 @@ return(1); } -#define RGB(b,g,r) (((r&0xF8)<<8)|((g&0xFC)<<3)|((b&0xF8)>>3)) //5 red | 6 green | 5 blue +#define RGB(r,g,b) (((r&0xF8)<<8)|((g&0xFC)<<3)|((b&0xF8)>>3)) //5 red | 6 green | 5 blue #define TFT_DEBUG int Adafruit_ST7735::DrawBitmapFile(const char *Name_BMP)