I know I have to know about the directories on device esp32, but is this a copy of what is on the PC? Does pycharm handle this automatically?
I have read the issue below that says the files should call boot.py and main.py. I've tried something along these lines and it didn't work.
https://github.com/vlasovskikh/intellij ... /issues/92
and this video: https://www.youtube.com/watch?v=PTYXsgUSoxs&t=1160s (6'45'' - 7'21''
I have some result:I have some result:
(base) iMac:SmartDrive neuberfran$ ampy --port /dev/tty.SLAB_USBtoUART ls
/.idea
/boot.py
/prog1.py
/zeze
(base) iMac:SmartDrive neuberfran$ ampy --port /dev/tty.SLAB_USBtoUART ls /zeze
/zeze/__init__.py
/zeze/main
/zeze/main.py
/zeze/module
/zeze/modulob.py
ESP32 PyCharm all ok but nothing happens
- neuberfran
- Posts: 17
- Joined: Mon May 20, 2019 3:23 pm
Re: ESP32 PyCharm all ok but nothing happens
Maybe you should put aside PyCharm for the moment and go for simple tools. Main.py has to be by default in the top level directory.
Open up a serial terminal session using e.g. screen, and once you have the REPL prompt, enter the commands:
import uos
uos.mv("zeze/main.py", "main.py")
uos.mv("zeze/module.py", "module.py")
That moves these files up to the TLD. That is the simple case. You may later change sys.path top include zeze in the search path. You should also arrange you PyCharm to have also files in the top level directory of the ESP32.
P.S.: My favorite serial terminal emulator picocom is available too for OS X.
Open up a serial terminal session using e.g. screen, and once you have the REPL prompt, enter the commands:
import uos
uos.mv("zeze/main.py", "main.py")
uos.mv("zeze/module.py", "module.py")
That moves these files up to the TLD. That is the simple case. You may later change sys.path top include zeze in the search path. You should also arrange you PyCharm to have also files in the top level directory of the ESP32.
P.S.: My favorite serial terminal emulator picocom is available too for OS X.
- neuberfran
- Posts: 17
- Joined: Mon May 20, 2019 3:23 pm
Re: ESP32 PyCharm all ok but nothing happens
I stay trying with picocom but I have issue (pic)
- Attachments
-
- Captura de Tela 2019-08-29 às 14.28.48.png (128.88 KiB) Viewed 2841 times
Re: ESP32 PyCharm all ok but nothing happens
Looking at the documentation for uos:
https://docs.micropython.org/en/latest/library/uos.html
It would appear that you need to use
https://docs.micropython.org/en/latest/library/uos.html
It would appear that you need to use
Code: Select all
uos.rename
- neuberfran
- Posts: 17
- Joined: Mon May 20, 2019 3:23 pm
Re: ESP32 PyCharm all ok but nothing happens
solved
- Attachments
-
- solved.png (96.7 KiB) Viewed 2832 times