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
Revision 5:156b180d2eda, committed 2015-07-30
- Comitter:
- justinkim
- Date:
- Thu Jul 30 10:47:25 2015 +0000
- Parent:
- 4:80075830f886
- Child:
- 6:7d45da201480
- Commit message:
- bgr -> rgb
Changed in this revision
| Adafruit_ST7735.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Adafruit_ST7735.cpp Thu Jul 30 05:15:46 2015 +0000
+++ b/Adafruit_ST7735.cpp Thu Jul 30 10:47:25 2015 +0000
@@ -114,7 +114,7 @@
}, // 255 = 500 ms delay
Rcmd1[] = { // Init for 7735R, part 1 (red or green tab)
- 15, // 15 commands in list:
+ 15, // 16 commands in list:
ST7735_SWRESET, DELAY, // 1: Software reset, 0 args, w/delay
150, // 150 ms delay
ST7735_SLPOUT , DELAY, // 2: Out of sleep mode, 0 args, w/delay
@@ -146,7 +146,7 @@
0x0E,
ST7735_INVOFF , 0 , // 13: Don't invert display, no args, no delay
ST7735_MADCTL , 1 , // 14: Memory access control (directions), 1 arg:
- 0xC8, // row addr/col addr, bottom to top refresh
+ 0xC0, // row addr/col addr, bottom to top refresh
ST7735_COLMOD , 1 , // 15: set color mode, 1 arg, no delay:
0x05
}, // 16-bit color
@@ -326,8 +326,8 @@
_rs = 1;
_cs = 0;
-
-// lcdPort.write( color >> 8 );
+
+ lcdPort.write( color >> 8 );
lcdPort.write( color );
_cs = 1;
@@ -676,3 +676,4 @@
return 0;
}
+
