Comments (17)
I added the XPT driver to the F1 family.
from stm32_graphics_display_drivers.
The ILI9341 only knows a resolution of 320x240 pixels, so it sure isn't on the screen. The ILI9486 already knows the 480x320 resolution.
So I can't tell you what's wrong, put up a project somewhere (example github). Show me how you connected the display. Show a link to your display.
from stm32_graphics_display_drivers.
Thank you for your reply!!
My board pin link to display is as same as your example.
My project link is as follows:
https://drive.google.com/drive/folders/1GcAsOb5L8-eK8yVAX1rgCi0OcNwECAKC?usp=sharing
I also sent an email to your Gmail account, THANK YOU VERY MUCH!!
from stm32_graphics_display_drivers.
I tried your project. I had a touchscreen. Only the redirection of the printf function is missing from the projected, so the touch coordinates do not reach either the uart or the swo pin.
from stm32_graphics_display_drivers.
Thanks for your testing!!
But the printf function should not affect the operation of the paint program, right?
I cannot draw any point in the paint test program.
Is the swo printf function is necessary?
I will try it tomorrow, thank you!
from stm32_graphics_display_drivers.
The paint program does not use printf, but touchcalib does.
from stm32_graphics_display_drivers.
So my first step is to open the printf function to get the value from the touchclib program.
Then to modify the TS_CINDEX value, is that right?
Thank you!
from stm32_graphics_display_drivers.
Yes, you must first generate TS_CINDEX values with tochcalib. These values may differ depending on the display type. It can then be used in the paint program.
Check it out here: https://www.youtube.com/watch?v=qyCctzAbD2g
from stm32_graphics_display_drivers.
I used the Touchcalib program, but after I clicked the first point, the second point did not appear, is this normal?
I have another question, can I use the live expression to replace uart printf function?
I cannot use SWO because my ST-LINK is the cheap one.
I have read this page
https://lujji.github.io/blog/stlink-clone-trace/
but I am afraid of breaking ST-LINK.
from stm32_graphics_display_drivers.
I let SWV Enable!
http://eeblog.co.uk/2018/11/29/swo-with-cubemx-using-st-link-clones/
After I pressed the first point, the second point did not appear.
But, SWV TIM Data Console only displays this.
It seems that STM32 has not detected any touch values at all, right?
My display is this
http://www.lcdwiki.com/3.5inch_Arduino_Display-UNO
Do I need to define ADC1 and ADC2 Modes in .ioc?
What should I do? I'm so confused...
Thank you!
from stm32_graphics_display_drivers.
It does not detect the touchscreen.
It is not necessary to set the ADC in the ioc because the LCD_IO_Init contains the ADC initialization.
Are you sure the touch on the screen is good?
You can use a multimeter to measure the resistances of the touchscreen.
I measured this on my display:
D6 - RS: 650 Ohm
D7 - WR: 300 Ohm
D6 - WR: infinite, if I press the surface of the display it is about 1000 Ohm
from stm32_graphics_display_drivers.
I measure my display(connected to stm32 but not power up), the value is as follows:
RS - D6: 1.7k Ohm(Not touched) 1.5 - 2k Ohm(Touched)
RS - D7: 1.7k Ohm(Not touched) 1.5k - 2k Ohm(Touched)
WR - D6: 160 Ohm(Not touched) 150 - 180 Ohm(Touched)
WR - D7: 160 Ohm(Not touched) 150 - 180 Ohm(Touched)
It seems that my display is different from yours, right?
I tested this display on my Arduino UNO, it can work.
I used the Arduino test program by on this website:
http://www.lcdwiki.com/3.5inch_Arduino_Display-UNO
Thank you!
from stm32_graphics_display_drivers.
Then something is wrong. A resistance of a few hundred ohms between RS-D6 (XM-XP) and WR-D7 (YP-YM) is normal. But between the WR-D6 (YP-XP), you can only measure around 1000 Ohms by pressing the touchscreen on the display. We have to measure an infinite value without pressure. I did the measurements without stm32.
from stm32_graphics_display_drivers.
I measured it again, no wires connected.
WR-D6 cannot be detected in untouched state 20M-50M Ohm(Touched)
WR-D7 cannot be detected in untouched state 30M-50M Ohm(Touched)
RS-D6 cannot be detected in untouched and Touched state, I think this is infinite.
RS-D7 cannot be detected in untouched and Touched state, I think this is infinite.
These values are so strange, is my digital multimeter broken?
Thank you!
from stm32_graphics_display_drivers.
This measured resistance is strange. I searched and there are 4 and 5 wire resistive touch screens as well. The driver is designed for 4 wires. Is it possible that there are 5 wires in your display?
https://www.dmccoltd.com/english/museum/touchscreens/technologies/Resistive.asp
Also try putting a breakpoint on ili9486.c line 658 (after if (TS_IO_DetectToch ())). Will you get here?
from stm32_graphics_display_drivers.
Does 4 wires mean that the display has XM XP YM YP?
If it's right, the code in Arduino test program proves that it has:
What is putting a breakpoint? Sorry, my program skill is not very well...
Is it to write break(); on line 658? But this will give an error.
Thank you!
from stm32_graphics_display_drivers.
I want to buy the new display to solve this strange problem...
I read the sheet on README.md, saying that STM32F1 cannot support SPI and XPT2046.
I have some questions about STM32F103C8T6. Can C8T6 use ILI9486 4-wire SPI interface and XPT2046 touch driver?
like this:
http://www.lcdwiki.com/4.0inch_SPI_Module_ILI9486
Or can you recommend me the display(>3 inch) and can use the touch function?
Thank you very much!!
from stm32_graphics_display_drivers.
Related Issues (20)
- ILI9341 3.2inch TFT with XPT2046 Problem HOT 6
- ILI9486 calibration problem HOT 3
- Help for XPT2046 on ILI9486(SPI mode) HOT 6
- Please add support for display SSD1963 HOT 1
- ILI9488 Hardware SPI not working (but software mode works) HOT 3
- What is the license for this repository? HOT 1
- ssd1289 Driver HOT 1
- ili9328 tft lcd Touch not working HOT 1
- ILI9488 coordinate not start from the left of the screen HOT 1
- FSMC changed RS line HOT 4
- SPFD5408/ILI932x HOT 1
- Touch xpt2046/ili9341 HOT 1
- Touch XPT2046 HOT 1
- how to draw a string on ILI9488 screen? HOT 1
- Calibration HOT 1
- Some define can not find out in std lib like SPI_SR_BSY_Pos SPI_SR_RXNE_Pos please teach me which file them included HOT 5
- STM32H7 HOT 1
- Calibration not work
- SPI Reading Codes not working
- ILI9488 gpio8 mirror issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stm32_graphics_display_drivers.