Wrong delay when use "delay ms" ESP32

Any bugs you encounter with Flowcode should be discussed here.
BenR
Matrix Staff
Posts: 1924
http://meble-kuchenne.info.pl
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 501 times
Been thanked: 684 times

Re: Wrong delay when use "delay ms" ESP32

Post by BenR »

Hi Jorgen,

I may have one in the office I can try, What if you set the toggle CS property to Yes? I did something with this and may have broken things for the No setting?

jgu1
Posts: 774
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 669 times
Been thanked: 173 times

Re: Wrong delay when use "delay ms" ESP32

Post by jgu1 »

Hi Ben!

It was on yes, but when I set to No, something happend. Picture is comming but background is striped and is still slow... No change in prescaler..

Jorgen
Attachments
SPI.jpg
SPI.jpg (39.42 KiB) Viewed 8148 times

jgu1
Posts: 774
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 669 times
Been thanked: 173 times

Re: Wrong delay when use "delay ms" ESP32

Post by jgu1 »

Hi Ben!

Kindly. Dare to ask you, something new concerning the highspeed SPI forILI9341 :?: :D If you not have display I can send one for you ;)

Jorgen

BenR
Matrix Staff
Posts: 1924
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 501 times
Been thanked: 684 times

Re: Wrong delay when use "delay ms" ESP32

Post by BenR »

Hi Jorgen,

I've managed to get my hands on my display so I'll have a go at firing it up tomorrow.

jgu1
Posts: 774
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 669 times
Been thanked: 173 times

Re: Wrong delay when use "delay ms" ESP32

Post by jgu1 »

Perfect perfect Ben :D :D

So if you manage (I am sure you can) to speed the SPI up on the Ili9341 does this also mean that the it will be speeded up on all other device´s I mean Arduino and Pic or is it only for ESP32?

Jorgen.

jgu1
Posts: 774
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 669 times
Been thanked: 173 times

Re: Wrong delay when use "delay ms" ESP32

Post by jgu1 »

Hi Ben!

Kindly ask, some news or stop it here, please ;)

Br jorgen

BenR
Matrix Staff
Posts: 1924
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 501 times
Been thanked: 684 times

Re: Wrong delay when use "delay ms" ESP32

Post by BenR »

Hi Jorgen,

Sorry I've got the display sat next to me but I've not found half an hour to hook it up yet. Not enough hours in the day.

I'll try and have a go for you now.

edit. hooked it all up and atm having no joy out of either component. Think it's my ESP board so will try a known working one and see how I get on with that.

jgu1
Posts: 774
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 669 times
Been thanked: 173 times

Re: Wrong delay when use "delay ms" ESP32

Post by jgu1 »

Hi Ben!

No sorry, I know you are a busy guy. I am glad you will try to speed the display up, take your time. ;)

Look forward to see what is possible ;)

Thank´s in advance

Br jorgen.

BenR
Matrix Staff
Posts: 1924
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 501 times
Been thanked: 684 times

Re: Wrong delay when use "delay ms" ESP32

Post by BenR »

Hi Jorgen,

Right finally managed to find some more free time to have a go with this and have managed to get the SPI component working again and pushed the speed right up.

For me it's working with a SPI frequency of 30MHz. 40MHz seems to kill it but that's maybe down to the length of my wires.

There are maybe further optimisations to make for example the clear is very fast but drawing large filled rectangles can be seen being coloured in, however this is hopefully now more down in the detail.

jgu1
Posts: 774
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 669 times
Been thanked: 173 times

Re: Wrong delay when use "delay ms" ESP32

Post by jgu1 »

Hi Ben!

Thank you very much.

I have update and perform a test. Now there is no stripe´s on the display anymore and look good, and the speed is a little faster, but slow compared to the seriel mode. I try to change the speed up to 80 mHz and toogle the CS, no change.

I att. my testprogram with Seriel and SPI. You can switch in the Macro in Main.

If you still are very busy, then don´t use more time for that, the seriel is fast, and can live with that, but again when I see on Utube the ILI9341 it is really fast ;) Could be nice i FC9 :D

EDIT: Ben, you are a master :lol: I switch from software to Channel1 "Oh my good" First test the display is so fast it is almost jumping over my table :lol: WOOOOOW. Nice job.

I try to make some more test and stress the display, thank´s . You hear :D :D :D :D



Br jorgen
Attachments
ESP32 ILI9341 BR .fcfx
(49.38 KiB) Downloaded 498 times

Post Reply