Comments (10)
Which processor family? Can you share this code?
from stm32_graphics_display_drivers.
Hi, I'm using NUCLEO-L552ZE-Q with STM32L552ZE MCU.
Yes, I attached the code.
LCD_HY32D_with_touchscreen.zip
from stm32_graphics_display_drivers.
- cannot be compiled until pins assignments are undefined in the lcd_io_gpio16.h file (modify the X, 0)
- I don't know how the SSD1289 is compatible with ILI9325
- the lcd_io_gpio16 driver cannot touchscreen functions
- the ts_xpt2046 driver is required (currently only versions F2 and F4 family)
from stm32_graphics_display_drivers.
I modified one time all the pins, but it didn't work. So, there might be some compatibility issue or two other cases that you mentioned.
Thank you so much, with these provided information, maybe I can find some solutions or other drivers which work with this LCD.
The main problem is: this LCD "HY32D" is an old TFT LCD which I couldn't find some stm32 driver for it.
from stm32_graphics_display_drivers.
You may want to try it first without a touchscreen (e.g. with the LcdSpeedTest App). If that already works, you can deal with the touchscreen. You may also want to try the ili9341 driver.
I only have ili9341 parallel 16 bit display.
from stm32_graphics_display_drivers.
Thank you, I will do it. When there is something new, I will inform you.
from stm32_graphics_display_drivers.
Wow. I cannot believe it. It works perfectly. Now, maybe there is a problem with clock or something else. I must change and try them.
You were right with the error. Maybe, the first time that I assigned the pins, I haven't assigned LCD_BL, because of this comment "/* If not used leave it that way */". That was my fault. Thank you so much again.
As you told, I could run it now with "appLcdSpeedTest". And I used "ili9325.c" and "lcd_io_gpio16.c" to run it. So, now I know that ili9325 driver does work without problem, but I must also try more times with "appTouchCalib". When I've tried it, there is an error. At first, I try alone to find the problem, but if I cannot solve it, let you know.
Have a nice week!
Hamed
from stm32_graphics_display_drivers.
I created the ts_xpt2046 touchscreen driver for L5. I can't try it because I don't have an L5 chip. Try. Applications that use the touchscreen also need a touchscreen driver. Remember to configure the pins in ts_xpt2046.h.
LCD_BL, LCD_RD, LCD_RST can remain X, 0 if not used (written there). The other pins must be definied.
from stm32_graphics_display_drivers.
Ok, I will do it. Thanks.
from stm32_graphics_display_drivers.
Hello,
I've tested all you said and many other parts of the code. There is firstly one problem, when I can solve it, then I can test it with the calibration code again.
I attach a video. Please, see this video (there is also a picture, if the video doesn't work). I used this function "BSP_LCD_DrawLine(x1, y1, x2, y2);" with these inputs:
x1 = 50;
y1 = 55;
x2 = 220;
y2 = 200;
So, the line must be an inclined line, but this line is straight. Because of that, when your code begins and wants to test the lines etc., all the lines are straight and non of them has an inclination.
I've changed many lines of code, used other functions from other codes and changed the registers, but non of them worked. I thought, maybe the problem is on this line:
#define ILI9325_SETCURSOR(x, y) {LCD_IO_WriteCmd16(RC(ILI9325_GRAM_HOR_AD)); LCD_IO_WriteData16(RD(x)); LCD_IO_WriteCmd16(RC(ILI9325_GRAM_VER_AD)); LCD_IO_WriteData16(RD(y));}
Or there is not enough delay for writing on registers or so on. But I couldn't do anything so far.
What do you think? How can I solve this problem?
To see the line, look at bottom of the LCD in image or video.
2.mp4
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.