mark.winger
Active member
I am using a teensy 3.5 to build a midi controller with scribble strips.
Using the adafruit st7735 libraries to control the 1.8" tft shield for prototyping.
It appears that no matter what pin I use for tft_cs in the tft object it always uses pin 10. (used graphicstest.ino as sample). I started with:
#define TFT_CS 10
#define TFT_RST 9 // Or set to -1 and connect to Arduino RESET pin
#define TFT_DC 8
The created and array for TFT_CS:
int SelectDisplay[DISPLAY_COUNT] = {21, 22};
Then initialized this way:
for (int i = 0 ; i < DISPLAY_COUNT; i++)
{
tft = new Adafruit_ST7735(SelectDisplay, TFT_DC, TFT_RST);
tft->initR(INITR_BLACKTAB); // Init ST7735S chip, black tab
......
}
No matter what pins I use for select, the initR clears the first display when I initialize the second and I cannot display to it. If I set DISPLAY_COUNT to 1 it works fine. I don't have an oscilloscope available see what the signal lines are doing.
Why does this happen? Do I need to use other pins for DC and Reset as well?
Mark
Using the adafruit st7735 libraries to control the 1.8" tft shield for prototyping.
It appears that no matter what pin I use for tft_cs in the tft object it always uses pin 10. (used graphicstest.ino as sample). I started with:
#define TFT_CS 10
#define TFT_RST 9 // Or set to -1 and connect to Arduino RESET pin
#define TFT_DC 8
The created and array for TFT_CS:
int SelectDisplay[DISPLAY_COUNT] = {21, 22};
Then initialized this way:
for (int i = 0 ; i < DISPLAY_COUNT; i++)
{
tft = new Adafruit_ST7735(SelectDisplay, TFT_DC, TFT_RST);
tft->initR(INITR_BLACKTAB); // Init ST7735S chip, black tab
......
}
No matter what pins I use for select, the initR clears the first display when I initialize the second and I cannot display to it. If I set DISPLAY_COUNT to 1 it works fine. I don't have an oscilloscope available see what the signal lines are doing.
Why does this happen? Do I need to use other pins for DC and Reset as well?
Mark