Closed codebude closed 6 years ago
Thanks for the feedback. To answer your questions:
The solution for (1) sounds like a good option for now. I'll adapt it for my use-case. Did you just hard overwrite the TFT_CS value each time, before sending data to the display?
Regarding the documentation - maybe this will help near-term: http://arduinodocs.readthedocs.io/en/latest/ (I'm not affiliated with this project, nor have I used it. But at first sight it looked promising.)
In the setup file comment out the line that defined TFT_CS then the library will not control any pin for the chip select. If the two chip select lines are say pin 4 and pin 5, then set both high and set just one low to write to a particular display. In the setup you can make both CS lines low for the tft.init();
If you want to clear both screens at the same time set both CS lines low and do a tft.fillScreen();
To write to just one display then just set one CS line low.
Note that if you set the cursor position or text color etc for one display then you will need to set it again for the second display.
Dear Bodmer, I am not so family with github, and programming. But it was nice to start my TTGO-T-Display projekt with many thanks to your TFT_eSPI.cpp Ich understand your time gap for documentation. Attached I made a excel analyse of TFT_eSPI.cpp for myself. ( without realy understand the Code ) TFT_eSPI.cpp. All.pdf
Someone can only learn by reading the overview of the Funktions and the Uses Variables and find fast the line in TFT_eSPI.cpp for seeing all. Feel free to add it anywere you think it my bee usefull, or proposals to change something or delete here.
@bayerla Thank you for sharing your PDF; very helpful!!
Hello, sorry if i reopen this issue, i found only this place talking about two display. I was able to do alternate CS pins. But what about two different drivers? Is it possible to use ST7735 and ILI9431 togheter? If yes, how?
Thank you very much!
At first let me say thank you for this great library. I've got two questions/problems: