Touchscreen_stm with STM32F103

External hardware connected to the STM32 board
Post Reply
Jabir
Posts: 2
Joined: Wed Sep 13, 2017 5:57 am

Touchscreen_stm with STM32F103

Post by Jabir » Wed Sep 13, 2017 10:38 am

Hello,

I want to connect "3.2inch Plug-and-play LCD for Raspberry"
1.jpg
1.jpg (31.55 KiB) Viewed 173 times
LCD Pin.png
LCD Pin.png (19.96 KiB) Viewed 173 times
2.jpg
2.jpg (79.69 KiB) Viewed 173 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

victor_pv
Posts: 1681
Joined: Mon Apr 27, 2015 12:12 pm

Re: Touchscreen_stm with STM32F103

Post by victor_pv » Wed Sep 13, 2017 1:26 pm

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.

Jabir
Posts: 2
Joined: Wed Sep 13, 2017 5:57 am

Re: Touchscreen_stm with STM32F103

Post by Jabir » Wed Sep 13, 2017 2:43 pm

Thank you very much :D
can you advise me another library that uses both SPI

victor_pv
Posts: 1681
Joined: Mon Apr 27, 2015 12:12 pm

Re: Touchscreen_stm with STM32F103

Post by victor_pv » Wed Sep 13, 2017 6:43 pm

I believe there is one called utouch that has been used with our cores before. Search in the forum for some references.

Post Reply