Hi every one,
I'm new on Arduino but already got some experience in controllers.
I want to do some tests with a TFT-Display with a ST7735 controller.
Therefore I wanted to use the TFT-library which comes with the Arduino Developement environment.
I'm using the following code (example of TFT / circle()):
#include <SPI.h>
#include <TFT.h> // Arduino TFT library
#define cs 10
#define dc 9
#define rst 8
TFT screen = TFT(cs, dc, rst);
void setup() {
// initialize the screen
screen.begin();
// make the background black
screen.background(255,0,0);
// set the stroke color to white
screen.stroke(255,255,255);
// set the fill color to grey
screen.fill(127,127,127);
// draw a circle in the center of screen
screen.circle(screen.width()/2, screen.height()/2, 50);
}
void loop() {
}
I expect a circle in white which is filled black on a red background.
That is also what I see, but unfortunately only if:
- I unplug the SCL-Line after the scatch has finished.
- Press the reset-button after the scatch has finisched.
- set the SCL-Line as input at the end of my scatch.
In all other cases I hardly see the image as it is overlayed with some stripes. (see attached picture)
There is also a kind of shadow around the circle.
It seams the error has something to do with the SCL-Line.
Some more facts:
- I'm using the driver TFT by Arduino, Adafruit Version 1.0.5
- As IDE I'm using the Arduino Version 1.8.1
- I'm using a uno
- I directly connect the lines of the Arduino the the lines of the TFT-Display. (no resistors)
- The TFT is supplied with 3.3V (According to the datasheet the lines of the TFT-controller are compatible with 5V and the TFT is not destroyed till now, as I see the correct image as described above.)
- The TFT is that one: "http://www.ebay.de/itm/1-8-inch-ST7735R-SPI-128-160-TFT-LCD-Display-Module-with-PCB-for-51-Arduino/172561467904?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m2749.l2649"
Ps: I've seen the topics where the advice is to change to a newer version of the IDE. I guess I'm using the latest version.
