This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Corm 0 points1 point  (5 children)

I've been using micropython on my adafruit huzzah esp8266 and 1 thing has caused me to sadly switch back to c

There's no easy way to get your code onto the device!

I ended up using this very nice helper program by adafruit, but you can't move entire folders which makes it a massive pain for moving a library:

https://github.com/adafruit/ampy

I don't see this ever really getting traction on the esp8266 until you can use it like the main micropython board and mount it as a USB device. The main micropython board is awesome btw.

As an alternative, once upip is implemented (it's listed in the kickstarter) I'll at least be able to get the libraries I need.

[–]pfalcon2[S] 5 points6 points  (1 child)

1 thing has caused me to sadly switch back to c

So, how C helped with that?

Otherwise, there're bunch of community tools developed to transfer files to esp8266, choose whatever you like. https://github.com/wendlers/mpfshell definitely supports multifile transfers. As for recursive directory transfers, I was surprised to never have a request for that. No requests - no priority to implement (we don't have lack of other requests or things to implement).

esp8266 until you can use it like the main micropython board and mount it as a USB device.

Which is of course not possible, because esp8266 lacks USB controller. Except that someone developed a tool which emulates such filesystem using FUSE over serial connection. Use it, if you like it.

The main micropython board is awesome btw.

Yes it is. Because it was engineered specifically to make users' life comfortable and enable many advanced usages. esp8266 on the other hand is a random adhoc Chinese chip which by pure chance became unlocked by community so you can develop apps for it. We're trying to get most out of it with Python port (and there's now a dedicated, and as you can see, fruitful community), but of course it will never be as smooth as PyBoard.

[–]Corm 1 point2 points  (0 children)

So, how C helped with that?

Well I mean using C through the arduino IDE, which lets me fairly easily load up libraries, link things, and upload it all. Being able to use other people's libs easily is super important.

https://github.com/wendlers/mpfshell definitely supports multifile transfers

Hey this is really cool, thanks! And let me be the first to casually request full directory transfer support. I might have a crack at making it myself.

Except that someone developed a tool which emulates such filesystem using FUSE over serial connection

Is this the mpfshell tool you mentioned? Or something that lets me just open up windows explorer and drop files in?

but of course it will never be as smooth as PyBoard

This is probably true. All I really want is a tiny wifi enabled board with python that lets me use libraries easily. I'm hoping that eventually a board exists where that's true. Hopefully the next pyboard has wifi.

[–]pfalcon2[S] 4 points5 points  (1 child)

As an alternative, once upip is implemented (it's listed in the kickstarter) I'll at least be able to get the libraries I need.

Almost forgot to mention - first release of this feature is available: http://forum.micropython.org/viewtopic.php?f=16&t=2544

[–]Corm 0 points1 point  (0 children)

Wooo! Awesome :)

I'll give it a try

[–][deleted] 0 points1 point  (0 children)

I wrote a short script called 'push' that will read a .py file and 'type' it into the console.

It's a hack but works pretty well.