ATMEGA328P ILI9488 hardware SPI not work

Any bugs you encounter with Flowcode should be discussed here.
barmaleyka
Posts: 10
http://meble-kuchenne.info.pl
Joined: Wed Feb 10, 2021 2:00 pm
Has thanked: 1 time

ATMEGA328P ILI9488 hardware SPI not work

Post by barmaleyka »

Hello. With the ATMEGA328P microcontroller, the ILI9488 SPI display does not work hardware SPI, the MK just hangs. The software SPI works, but very slowly.

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Re: ATMEGA328P ILI9488 hardware SPI not work

Post by medelec35 »

Hello.
Can you post your fcfx and .c files please.
Have you run Library updates to make sure you are sung the latest components?
Martin

barmaleyka
Posts: 10
Joined: Wed Feb 10, 2021 2:00 pm
Has thanked: 1 time

Re: ATMEGA328P ILI9488 hardware SPI not work

Post by barmaleyka »

img.PNG
img.PNG (44.48 KiB) Viewed 17607 times
Flowcode1.fcfx
(11.87 KiB) Downloaded 725 times
Flowcode1.c
(110.11 KiB) Downloaded 722 times

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Re: ATMEGA328P ILI9488 hardware SPI not work

Post by medelec35 »

Hello.
Can you try the attached please.
If it works, it's because the O/P is the SS on SPI hardware.
If unconnected or low, it puts the SPI in slave mode and causes it to lock up.
SS must be either connected to a pull up resistor or set output to high.
Attachments
Flowcode1 barmaleyka.fcfx
(12.08 KiB) Downloaded 652 times
Martin

barmaleyka
Posts: 10
Joined: Wed Feb 10, 2021 2:00 pm
Has thanked: 1 time

Re: ATMEGA328P ILI9488 hardware SPI not work

Post by barmaleyka »

Hello. Yes, the MK is working, but the display does not work, the screen is white.

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Re: ATMEGA328P ILI9488 hardware SPI not work

Post by medelec35 »

Sorry, I have just spotted you have PrintNumber, then ClearDispaly straight after.
That means you won't see any chars printed.
Try both of the attached projects
Attachments
Flowcode1 barmaleyka v1.fcfx
(12.52 KiB) Downloaded 657 times
Flowcode1 barmaleyka v2.fcfx
(13.47 KiB) Downloaded 652 times
Martin

barmaleyka
Posts: 10
Joined: Wed Feb 10, 2021 2:00 pm
Has thanked: 1 time

Re: ATMEGA328P ILI9488 hardware SPI not work

Post by barmaleyka »

Unfortunately both options didn't work

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Re: ATMEGA328P ILI9488 hardware SPI not work

Post by medelec35 »

Hello.
I have just ordered a display.
Hopefully, I will then be able to resolve this for you.
Martin

Chadb
Posts: 63
Joined: Fri Dec 18, 2020 1:15 pm
Has thanked: 23 times

Re: ATMEGA328P ILI9488 hardware SPI not work

Post by Chadb »

Hey, I ordered a 3.5" display that claims to be an ILI9488. Reading the comments on Amazon it is actually a ILI9481. I haven't gotten mine yet but might explain why there are some issues. I am going to try to get one of these working with the ESP32. There are a lot of these on Amazon now, so it would seem that this is going to be an issue for driver support.

https://www.amazon.com/dp/B0BWJHK4M6?re ... tails&th=1

Chad

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: ATMEGA328P ILI9488 hardware SPI not work

Post by jgu1 »

Hi Chad!

I can recommend to use the Ili9488 display with ESP32. Ben have managed to speed these display up and they are really fast. You can also use ST7796 4" and this is the fastest. Have a look here: viewtopic.php?f=3&t=1851

I have some examble with these display as I use as standard setup when I made a new project included touch fuction, I can share with you if you want?


Look forvard to see if Martin is able to speed up with AVR, I know form earlyer these are little slow ;)

Br jorgen

Post Reply