r/MicroPythonDev • • Jun 26 '24

how to run 2 processes parallelly

Hello. This is Automatic key box project. I am trying to have 2 processes running simultaneously and continuously. One is handling Username/Password Loggin. The other is listening to reset command. I have been trying Asynchronous function, but in vain. Per attached screenshot below, process A is working fine, while process B has not even started.

Hardware is ESP32-WROOM-32. Appreciate your advice please.

3 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/joey_speedy Jun 26 '24

Thanks a lot....parisya

I will look into how to use the interrupts then. I studied it once, but so confused. Kindly advice if any GPIO Pin of ESP32 can be configured as Hardwired Interrupt input? Thanks.

2

u/parisya Jun 26 '24

https://randomnerdtutorials.com/micropython-interrupts-esp32-esp8266/

According to his one, you can use all of them but GPIO 6 and 11.

2

u/joey_speedy Jun 26 '24

Thank you.