Page 1 of 1

Touchscreen_stm with STM32F103

Posted: Wed Sep 13, 2017 10:38 am
by Jabir
Hello,

I want to connect "3.2inch Plug-and-play LCD for Raspberry"
1.jpg
1.jpg (31.55 KiB) Viewed 86 times
LCD Pin.png
LCD Pin.png (19.96 KiB) Viewed 86 times
2.jpg
2.jpg (79.69 KiB) Viewed 86 times
For that I use this program:

https://github.com/rogerclarkmelbourne/ ... hpaint.ino

The question is: where to connect =====> On the LCD


#define YP PB0 // must be an analog pin
#define XM PA3 // must be an analog pin
#define YM PB7 // can be a digital pin
#define XP PC13 // can be a digital pin

Re: Touchscreen_stm with STM32F103

Posted: Wed Sep 13, 2017 1:26 pm
by victor_pv
That LCD has a digital touch screen controller that uses SPI, as you can see a CS for touch, and a CS for LCD.
The sketch you are referencing is for a different use, reading the touch screen with analog signals.

Re: Touchscreen_stm with STM32F103

Posted: Wed Sep 13, 2017 2:43 pm
by Jabir
Thank you very much :D
can you advise me another library that uses both SPI

Re: Touchscreen_stm with STM32F103

Posted: Wed Sep 13, 2017 6:43 pm
by victor_pv
I believe there is one called utouch that has been used with our cores before. Search in the forum for some references.