Page 1 of 1

ESP32 Timer compiler error

Posted: Wed Aug 10, 2022 11:19 pm
by josecastaneda
Hello,
i want to use Timer and Timed Interval with ESP32 Wroom but flowcode V9 don't compile. Some body now my problem?
thanks in advance

Re: ESP32 Timer compiler error

Posted: Fri Aug 12, 2022 2:10 pm
by BenR
Hello,

Please can you post your project and I'll have a look for you

Re: ESP32 Timer compiler error

Posted: Thu Aug 18, 2022 3:20 am
by josecastaneda
]Simple timer with out load to main. Only donwload to components. and don't compile

Re: ESP32 Timer compiler error

Posted: Fri Aug 19, 2022 12:30 pm
by BenR
Thanks very much for the file, I'll see if we can add support for the ESP32 hardware.

For now the ESP32 timers are done in a very different way so it might proove tricky to make them do what we want here though I'll certainly have a go for you.

Re: ESP32 Timer compiler error

Posted: Wed Aug 24, 2022 7:06 pm
by unity-control
I had the same issue when I started using ESP32.

However I've managed to adapt my program to use custom timers with some variables with minimal code. In other words, you can use a let's say 1ms Interrupt which is what I use at the moment. Inside the Interrupt routine, you just add something like this:

COUNT_TIMER_A_MS = COUNT_TIMER_A_MS + 1
COUNT_TIMER_B_MS = COUNT_TIMER_B_MS + 1
COUNT_TIMER_C_MS = COUNT_TIMER_C_MS + 1
COUNT_TIMER_D_MS = COUNT_TIMER_D_MS + 1

These are used throughout the program and you just count ms with them in your code for things to happen. You can reset them (set the variable to zero) and/or use other variables named for example COUNT_TIMER_A_MS_NOW to do simple maths and trigger events...

I think 1ms of resolution is quick enough for whatever task is needed...

Hope this helps!
R

Re: ESP32 Timer compiler error

Posted: Sun Aug 28, 2022 2:42 am
by josecastaneda
Many thanks , for now i forget flowcode v9 profesional. i use free software and this working very nice, BT, SPI(4 devices touch,SD,ILI9341 and max thermocouple). I don't know why when send image to GLCD this is like 10 Seconds Per Frame, instead of 60FPS