Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STM32F7 LCD/TFT interface and touch not supported. #247

Closed
Vicky-S opened this issue May 12, 2018 · 13 comments
Closed

STM32F7 LCD/TFT interface and touch not supported. #247

Vicky-S opened this issue May 12, 2018 · 13 comments
Assignees
Labels
enhancement New feature or request

Comments

@Vicky-S
Copy link

Vicky-S commented May 12, 2018

I tried to explore the LCD/TFT interface after checking the SD card, Serial, GPIO, EEPROM, SPI communication. Everything is working fine except LCD/TFT interface. I tried to use the LTDC interface from STM32GENERIC for STM32 official core but its not working.

Is there any example for LCD of STM32F7 in official core? Please share it if there is any.

Thank you.

@Vicky-S Vicky-S changed the title STM32F7 doesnt have LCD/TFT and touch support. STM32F7 LCD/TFT interface and touch not working. May 12, 2018
@fpistm fpistm changed the title STM32F7 LCD/TFT interface and touch not working. STM32F7 LCD/TFT interface and touch not supported. May 12, 2018
@fpistm fpistm added enhancement New feature or request New feature labels May 12, 2018
@fpistm fpistm self-assigned this May 12, 2018
@fpistm
Copy link
Member

fpistm commented May 12, 2018

Here a quick port of @danieleff and @ChrisMicro to test LTDC and TS:
https:/fpistm/Arduino_Core_STM32/tree/LTDC_TS_Test
This will not be merged, it is only for test purpose.
A generic LTDC and TS will need to be study.
Enjoy

@Vicky-S
Copy link
Author

Vicky-S commented May 14, 2018

Thanks bro. I have checked the LTDC and TS example its working. I'll test more and give feedback to u.

@Vicky-S
Copy link
Author

Vicky-S commented May 14, 2018

It works very fine. I have tested with gui library from STM32GENERIC because with the help of gui only we can create windows, text boxes, call back functions etc. Since u made some changes in touch library i need to do some modifications on touch part of the program. After some modifications it works very fine.

But when we continuously updating the screen it shows some glitch on the screen. This problem was also there in STM32GENERIC.

@fpistm
Copy link
Member

fpistm commented May 14, 2018

The only changes for TS is:

-    Wire.stm32SetInstance(I2C3);
-    Wire.stm32SetSDA(PH8);
-    Wire.stm32SetSCL(PH7);
+    Wire.setSDA(PH8);
+    Wire.setSCL(PH7);

And that I put the TS as a library. @ChrisMicro update his TS example after @danieleff merge it:
https:/ChrisMicro/Arduino_STM32F7_Discovery/tree/master/_0005_TouchDisplayTemplate
For glitch I've disabled the D-Cache in all the example. Don't know if you disable it for your sketch.

@Vicky-S
Copy link
Author

Vicky-S commented May 14, 2018

They kept TS as local library and initialized in every example. In official core u are inserted the library in git repo itself so we dont need to add it in every example which is good for the users.

They got the coordinates from the local function itself. In official core we need to create a object to call the function "getPoint()" and the variables of the coordinates also changed.

These are the minor changes but if we load the generic program directly after commenting the I2C instance in official core, it wont work.

Thanks for making the TS as inbuilt library because we dont need to add it in every sketch.

@Vicky-S
Copy link
Author

Vicky-S commented May 14, 2018

glitch is still there after i added "build_opt.h". do we need to add this library

@fpistm
Copy link
Member

fpistm commented May 14, 2018

glitch is still there after i added "build_opt.h". do we need to add this library

build_opt.h is not a library. This is a way to add some build option at sketch level (undef, define, add include path, static lib,...) for gcc

@Vicky-S
Copy link
Author

Vicky-S commented May 14, 2018

Oh.. thanks... I didnt included that library... I just copied that build_opt.h from one of the example and placed it on my sketch folder... But glitch is still there when i continuously update the textbox...

@Vicky-S Vicky-S closed this as completed May 18, 2018
@sixtyfive
Copy link

This issue was closed, but I don't see anything in the libraries folder about either LCD/TFT or the capacitive touch controller peripheral. Would it be possible to re-open the issue? Or can your LTDC_TS_Test branch already be merged, @fpistm?

@fpistm
Copy link
Member

fpistm commented Jun 12, 2020

Hi @sixtyfive

As mentioned above:

This will not be merged, it is only for test purpose.
A generic LTDC and TS will need to be study.

@sixtyfive
Copy link

So the issue is still open: it has not been studied and the feature is not implemented, correct?

@sixtyfive sixtyfive mentioned this issue Jun 12, 2020
@fpistm
Copy link
Member

fpistm commented Jun 12, 2020

So the issue is still open: it has not been studied and the feature is not implemented, correct?

Time is always the missing ingredients. 😬 Any contributions are welcome. The OP closed this issue as he got a way to use it.

@sixtyfive
Copy link

Okay, fair enough! :) I'd love to help, unfortunately I'm only a beginner with an Arduino-beginner-level understanding of C++. Hopefully someone will come along!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants