Hello.How to on/off the backlight?2.2”TFT LCD Display V1.0 (SPI Interface)
JaneYu 2019-04-24 14:09:45 11 Views12 Replies Hello.
How to on/off the backlight?
2.2”TFT LCD Display V1.0 (SPI Interface)
Is there support for setRotation? It doesn't appear to work on its own (I fixed the spelling inconsistencies in the library so it would run, and confirmed it is setting eRotation how it supposed to. At this point, I don't know enough to proceed. Did the hardware ever support rotating the image/text?
Thanks
JaneYu There are typos in the DFRobot_ST7687S and DFRobo_Display libraries. For example, virtual int16_t setRotaion(eROTATION ratotion); should be setRotation and the variable should be rotation. Not a problem for the 1794 display since it ignores these. -Frank
JaneYu Hi, were you able to get setRotation to work after fixing these? I found the misspellings, but it doesn't seem to do anything and I'm wondering where to go from here if it's missing hardware support.
Trying to get the module to work on an ESP32 development board? Here are the connections. The left are the Uno connections, and the right are the ESP32 dev board connections.
Uno - ESP32
5v - VCC - pin 19
gnd - gnd - pin 38
a11 mosi - spi mosi - gpio 23 - pin 37
a13 sck - spi s cl - gpio 18 - pin 30
a6 - wr - gpio - adc1 ch4 - gpio 32 - pin 7
a3 int1 - cs - adc1 ch5 - gpio 33 - pin 8
a5 - rs - adc2 ch8 - gpio 25 - pin 9
a7 - lck - adc2 ch9 - gpio 26 - pin 10
and in the Arduino IDE sketch use:
uint8_t pin_cs = 33, pin_rs = 25, pin_wr = 32, pin_lck = 26;
-Frank
JaneYu Is there an example of reading from the touch sensor? -Frank
JaneYu I'll answer my own question: TFT = Thin Film Transistor and not Touch sensor. There is no touch input.
I used the reference code in the wiki to create two triangles on the display. I want to move them around on the x-axis of the screen. I their a way for me to do that using the rotary encoder to control them. i want to be able to create a diamond out of the two triangles by using the rotary encoder to move them left and right. How would i code that?
JaneYu how do you set line lengths and angles.
the bit mapping says its to big for arduino uno
JaneYu Hi,
You can find what you want in these two libraries.
ST7687S Library
DFRobot-Display Library
Hello :D
Are there any wiring help documents for an esp32 or a esp8266?
In the Wiki there is an example which suggests to use an esp32 because of the lack of enough memory on the uno.
I tried it myself but unfortunately did not get it working.
Thanks
JaneYu Unfortunately we do not have pictures for this readily available. You can email [email protected] with a picture of your setup and they can help trouble shoot you through this process. Thanks!


