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.
Dependents: ME503_VehicleAssembly
Diff: Adafruit_ST7735.cpp
- Revision:
- 8:96f8411b85a3
- Parent:
- 7:58d9c26fd03c
--- a/Adafruit_ST7735.cpp Wed Sep 13 20:53:01 2017 +0000
+++ b/Adafruit_ST7735.cpp Tue Aug 27 20:24:10 2019 +0000
@@ -19,9 +19,8 @@
#include "mbed.h"
#include "Adafruit_ST7735.h"
-
// Constructor
-Adafruit_ST7735::Adafruit_ST7735(PinName mosi, PinName miso, PinName clk, PinName cs, PinName rs): lcdPort(mosi,miso,clk), _cs(cs), _rs(rs),Adafruit_GFX(ST7735_TFTWIDTH, ST7735_TFTHEIGHT)
+Adafruit_ST7735::Adafruit_ST7735(PinName mosi, PinName miso, PinName clk, PinName cs, PinName rs, PinName rst): lcdPort(mosi,miso,clk), _cs(cs), _rs(rs), _rst(rst), Adafruit_GFX(ST7735_TFTWIDTH, ST7735_TFTHEIGHT)
{
lcdPort.format(8,3);
lcdPort.frequency(10000000);
@@ -269,6 +268,11 @@
// toggle RST low to reset; CS low so it'll listen to us
_cs = 0;
+ _rst = 1;
+ wait_ms(500);
+ _rst = 0;
+ wait_ms(500);
+ _rst = 1;
wait_ms(500);
if(cmdList) commandList(cmdList);