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

Can I use this project with this screen? #23

Open
lavara123 opened this issue Feb 19, 2025 · 9 comments
Open

Can I use this project with this screen? #23

lavara123 opened this issue Feb 19, 2025 · 9 comments

Comments

@lavara123
Copy link

Screen is in the link:
http://www.lcdwiki.com/2.4inch_SPI_Module_ILI9341_SKU:MSP2402

@peterhinch
Copy link
Owner

It's not evident from the docs what touch controller chip is in use. My guess is that it might be an XPT2046 because it is an SPI device for resistive screens and is widely used. If you can find evidence that it is an XPT2046 then I would expect the display to work.

@lavara123
Copy link
Author

It's not evident from the docs what touch controller chip is in use. My guess is that it might be an XPT2046 because it is an SPI device for resistive screens and is widely used. If you can find evidence that it is an XPT2046 then I would expect the display to work.

I think, as you said, there is an example usage here and micropython-touch can be used on this screen, is it true?

https://helloraspberrypi.blogspot.com/2021/03/rpi-picomicropython-ili9341-spi-display.html?m=1

@peterhinch
Copy link
Owner

That seems to indicate that it's an XPT2046 so you should be in luck.

@lavara123
Copy link
Author

lavara123 commented Feb 21, 2025

That seems to indicate that it's an XPT2046 so you should be in luck.

Image

Is there something I did wrong?

MCU: Rasbery Pi Pico W

@peterhinch
Copy link
Owner

Let's take this one step at a time.

Have you run this test? There is no point in running code until you get a pixel-prefect result. Then you can be confident of the display handling of your touch_setup.py.

Have you followed the following paragraphs on touch calibration?

@lavara123
Copy link
Author

lavara123 commented Feb 22, 2025

Let's take this one step at a time.

Have you run this test? There is no point in running code until you get a pixel-prefect result. Then you can be confident of the display handling of your touch_setup.py.

Have you followed the following paragraphs on touch calibration?

What I did: downloaded micropython-touch as zip and put it into pi pico as shown in the picture. Then rename it touch_setup.py and send it to pico
https://github.com/peterhinch/micropython-touch/blob/master/setup_examples/ili9341_xpt2046_pico.py

Image

@peterhinch
Copy link
Owner

That will work if the pinout is the same as your display.

It is essential to run the test mentioned above. If this doesn't work you need to check the electrical connections/display pinout.

@lavara123
Copy link
Author

That will work if the pinout is the same as your display.

It is essential to run the test mentioned above. If this doesn't work you need to check the electrical connections/display pinout.

The examples here work on touchscreen
https://helloraspberrypi.blogspot.com/2021/03/rpi-picomicropython-ili9341-spi-display.html?m=1

@lavara123
Copy link
Author

I solved the issue, PINs need to be configured

github example:

Image

my edit:

Image

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

No branches or pull requests

2 participants