Python ESP32 Intro and REPL

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

I understand boot_py calls one's main_py.. and if that doesn't exist it will default to REPL.. However, what if my main_py needs to interface to the user via the UART that is in use by REPL?

If not, is it possible to upload lots of custom python scripts, and then execute any of them thru the REPL interface?

For example, the REPL user would execute "CONNECT_py", which would establish a bluetooth connection with an external device. Then when the REPL user wants to transmit, he would call "TX 1234". (The TX_py script would take the 1234 argument and send it via the open connection)?

Can this be done, or should the REPL interface be disabled (or defined to a different UART), thus freeing the UART/USB interface for my main_py program?

bennguyen
visit shbcf.ru