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.
Revision 1:226fd3534967, committed 2013-08-15
- Comitter:
- SomeRandomBloke
- Date:
- Thu Aug 15 13:27:10 2013 +0000
- Parent:
- 0:99ee879ef5a9
- Child:
- 2:18ecda534e06
- Commit message:
- Updates to GFX constructor
Changed in this revision
| Adafruit_ST7735.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Adafruit_ST7735.cpp Tue Mar 26 23:09:06 2013 +0000
+++ b/Adafruit_ST7735.cpp Thu Aug 15 13:27:10 2013 +0000
@@ -22,7 +22,7 @@
// Constructor
Adafruit_ST7735::Adafruit_ST7735(PinName mosi, PinName miso, PinName sck, PinName cs, PinName rs, PinName rst)
- : lcdPort(mosi, miso, sck), _cs(cs), _rs(rs), _rst(rst)
+ : lcdPort(mosi, miso, sck), _cs(cs), _rs(rs), _rst(rst), Adafruit_GFX(ST7735_TFTWIDTH, ST7735_TFTHEIGHT)
{ }
@@ -219,7 +219,6 @@
void Adafruit_ST7735::commonInit(uint8_t *cmdList)
{
- constructor(ST7735_TFTWIDTH, ST7735_TFTHEIGHT);
colstart = rowstart = 0; // May be overridden in init func
_rs = 1;
@@ -227,7 +226,7 @@
// use default SPI format
lcdPort.format(8,0);
- lcdPort.frequency(20000000); // Lets try 8MHz
+ lcdPort.frequency(30000000); // Lets try 30MHz
// toggle RST low to reset; CS low so it'll listen to us
_cs = 0;