Anyone recommending a good IDE?

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
goochy
Posts: 12
Joined: Tue Apr 17, 2018 9:58 am

Re: Anyone recommending a good IDE?

Post by goochy » Tue Apr 17, 2018 10:14 am

G'day,

I am new to, well all of it.

I have been using uPyCraft (https://dfrobot.gitbooks.io/upycraft/co ... -yuan.html) and I find it very convenient to write the code, upload and see the results right there and easy to make alterations.

It has an editor, syntax checker, file manager, uploads directly to the board, and if you have the correct board (I am using a Wemos ESP32 Lite Revision 1, and it isn't supported in uPyCraft) you can erase and update the firmware from within. Again I don't have a board they list in the firmware updater so I don't know if it works.

Its fast and efficient, no need to use an editor and then an FTP program to upload the file and then some terminal program to run your scripts.

It also has word completion in the runtime pane to quickly get to the definition names.

Oh, I forgot to mention that the developer has released the source code so you can add/change what you like.


Cheers.
Last edited by goochy on Thu Apr 19, 2018 5:10 am, edited 2 times in total.

bitninja
Posts: 165
Joined: Thu Sep 15, 2016 4:09 pm
Location: Spring, Texas

Re: Anyone recommending a good IDE?

Post by bitninja » Tue Apr 17, 2018 6:04 pm

I like uPyCraft. I use something similar... but is based on Ampy... Adafruit's utility.
I think they are working on a Linux version, which would be great. I know there are many on this board that use Linux.
A cross-platform IDE would be nice!

cable134
Posts: 28
Joined: Sun Aug 20, 2017 10:51 pm

Re: Anyone recommending a good IDE?

Post by cable134 » Sun Apr 22, 2018 1:45 pm

I'm using PyCharm + with Micropython plugin (https://github.com/vlasovskikh/intellij-micropython)

This plugin does not support ESP32 dialect but anyway works fine.
It's possible to upload and run files directly from the IDE.


I've modified some plugin's scripts to work with Loboris port.
For this moment it's located in

Code: Select all

cd ~/Library/Application\ Support/PyCharmCE2018.1/intellij-micropython/scripts/

Code: Select all

diff microcleanfs.py-orig microcleanfs.py
39a40
>     port_baudrate=115200
42c43
<     board = Pyboard(port)
---
>     board = Pyboard(port, baudrate=port_baudrate)
51c52
<     for name in files.ls():
---
>     for name in files.ls("/flash"):
54a56
>                 print("- {}".format(name))
57a60
>                     print("- /{}/".format(name))
77a81
>         print('')

Code: Select all

diff microupload.py-orig microupload.py
54a55
>     port_baudrate=115200
56c57
<     board = Pyboard(port)
---
>     board = Pyboard(port, baudrate=port_baudrate)
62a64,65
>         exclude_files = opts['--exclude']
>         exclude_files.extend(['.git','.DS_Store'])
64c67
<                      for x in list_files(root, opts['--exclude'])]
---
>                      for x in list_files(root, exclude_files)]

Code: Select all

diff microcleanfs.py-orig microcleanfs.py
39a40
>     port_baudrate=115200
42c43
<     board = Pyboard(port)
---
>     board = Pyboard(port, baudrate=port_baudrate)
51c52
<     for name in files.ls():
---
>     for name in files.ls("/flash"):
54a56
>                 print("- {}".format(name))
57a60
>                     print("- /{}/".format(name))
77a81
>         print('')

User avatar
rdagger
Posts: 143
Joined: Tue Feb 28, 2017 6:16 pm
Contact:

Re: Anyone recommending a good IDE?

Post by rdagger » Sun Apr 22, 2018 4:38 pm

I use Atom with the remote-ftp and linter-flake8 packages. I run the Lobo firmware with built-in FTP server. The remote-ftp package automatically syncs files in Atom to the ESP32. I adjust the flake8 rules as needed for the differences between Python and MicroPython.

The same strategy should also work with VS Code or Sublime.

goatchurch
Posts: 6
Joined: Tue Sep 12, 2017 10:26 am

Re: Anyone recommending a good IDE?

Post by goatchurch » Fri Apr 27, 2018 5:35 pm

A lot of Python is nowadays written in the Jupyter IPython notebook environment.

So I've got Micropython working through this interface.
https://github.com/goatchurchprime/jupy ... on_kernel/

I use its commands to flash the board and to upload files.
https://github.com/goatchurchprime/jupy ... ning.ipynb

mhepp
Posts: 19
Joined: Thu May 28, 2015 5:50 pm

Re: Anyone recommending a good IDE?

Post by mhepp » Fri Jun 08, 2018 7:57 am

rdagger wrote:
Sun Apr 22, 2018 4:38 pm
I use Atom with the remote-ftp and linter-flake8 packages. I run the Lobo firmware with built-in FTP server. The remote-ftp package automatically syncs files in Atom to the ESP32. I adjust the flake8 rules as needed for the differences between Python and MicroPython.

The same strategy should also work with VS Code or Sublime.
Hi,
thanks! First, I am still looking for a good solution that works with Sublime Text. Using FTP requires, if I understand correctly, a Wifi ink to the module, right? I am still looking for an integrated workflow that works via USB UART for

1. syncing the code and file system and
2. REPL

because for an FTP-based approach, I would need to have the uP board and my development machine join the same Wifi, which is not an option in my work environment due to security constraints (the board cannot join the Wifi without using my private credentials, which would be a security risk).

https://github.com/gepd/uPiotMicroPythonTool in principle does what I need, but does not work reliably with my Adafruit Feather boards (maybe their USB UART is a bit too unreliable).

I am thinking of simply using ampy + a REPL via UART; my main problem is that I have not yet found out how I can copy the entire directory of my project to the *root* directory of the Micropython board.

Code: Select all

ampy put <projectdir>
will put it into /<projectdir> on the board.

Code: Select all

ampy put <projectdir> /
does not seem to work, neither does

Code: Select all

ampy put *.*
Any help for a lean USB UART-based workflow would be very much appreciated!

Best wishes.

Martin

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Anyone recommending a good IDE?

Post by Roberthh » Fri Jun 08, 2018 8:24 am

Try Dave Hyland's rshell.

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Anyone recommending a good IDE?

Post by dhylands » Fri Jun 08, 2018 3:22 pm

Just make sure that you use --buffer-size=30 and probably -a with rshell

cyberlab
Posts: 56
Joined: Sat Apr 21, 2018 5:02 am

Re: Anyone recommending a good IDE?

Post by cyberlab » Sun Jun 24, 2018 4:22 am


uncoded0123
Posts: 6
Joined: Wed Aug 12, 2020 11:09 am

Re: Anyone recommending a good IDE?

Post by uncoded0123 » Mon Mar 15, 2021 6:19 pm

Thonny is the best IDE I've found for MicroPython ESP-32 and ESP-8266, you can also flash using Thonny.

Late reply, but it may help others too.

Post Reply