Page 1 of 1

Go back to setup

Posted: Mon Dec 07, 2020 5:54 am
by saeed144
Hi
Is there any way except restart micro controller, to go back to setup() when we are in loop() ?

Re: Go back to setup

Posted: Mon Dec 07, 2020 6:57 am
by fpiSTM
Simply call it in loop.

Re: Go back to setup

Posted: Mon Dec 07, 2020 12:01 pm
by saeed144
fpiSTM wrote: Mon Dec 07, 2020 6:57 am Simply call it in loop.
Thank you
One more question:
How I can put stm32f103 to sleep mode in Arduino IDE?

Re: Go back to setup

Posted: Mon Dec 07, 2020 12:59 pm
by fpiSTM
Well, it depends on the core you used for the STM32 core you can use the STM32LowPower library.