Sorry Peter, I should have made my point regarding libraries clearer. Arduino IDE has a library manager which allows users a great interface to select modules. This creates a natural focal point where (nearly all) new libraries get loaded into and users can easily get immediate access to them. Of course Micropython does not have a single IDE, so this is not a fair comparison. I just wanted to make a comparison for users of Arduino coming to Micropython; they may find the number of libraries appear small, however many more exist (you just need to search to find them).pythoncoder wrote: ↑Sun Dec 02, 2018 7:42 amThere is a distinction between official libraries and user-contributed ones. Official libraries are in one GitHub repo and bug reports can be raised there for attention by the MicroPython maintainers.philwilkinson40 wrote: ↑Tue Nov 27, 2018 12:16 pm...
As for libraries, I think we all know that this is an area Micropython could improve. They tend to be scattered across github and the best option to find what you need is usually to search, then if needed post, in this forum!
Perhaps this interest is a trigger to pull together the libraries in a single place.
Phil
Obviously they can't be responsible for user contributed libraries which are indeed scattered around GitHub. Issues inevitably need to be raised there for attention by the author.
It's a few years since I used Arduino but my recollection is that the problem is largely fixed by the Wiki. That had pointers to user contributed libraries and was a great resource. I found it worked fine.
For some reason the MicroPython wiki is rather little-used. Some time ago I offered to remove the outdated content but Damien wasn't keen on the idea. It would be good if more library authors used it to promote their work.
Micropython as Arduino killer
- philwilkinson40
- Posts: 63
- Joined: Tue Nov 14, 2017 3:11 am
- Location: Perth, Australia
Re: Micropython as Arduino killer
Re: Micropython as Arduino killer
Yeah they did that very well.philwilkinson40 wrote: ↑Sun Dec 09, 2018 4:58 amArduino IDE has a library manager which allows users a great interface to select modules.
But MicroPython can theoretically have that as well via pip or upip. I think it's not yet in a state to use it as such though? It for sure works for modules in micropython-lib, but I'm not sure there's proper documentation both for users and library publishers, or how it's supposed to work with libraries which include C code.
-
- Posts: 969
- Joined: Sat Feb 03, 2018 7:02 pm
Re: Micropython as Arduino killer
upip sounds great and should work perfectly for beginners. It should be better documented. The load of questions on this forum from newbies that don't even know how to load a library to their device is a bit too high.
Later on, nobody uses upip on esp8266 as you quickly run out of RAM with bigger modules like uasyncio.
Later on, nobody uses upip on esp8266 as you quickly run out of RAM with bigger modules like uasyncio.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Re: Micropython as Arduino killer
You bring up a good point about frozen modules. I think we should focus on situations that do not require that modules be frozen into the firmware... and make that as painless as possible. upip is great for this, but I think there may be cases where it may not work... for instance, what about platforms without network access?
As a fallback, there probably should be a documented, manual process for installing a module.
As a fallback, there probably should be a documented, manual process for installing a module.
Re: Micropython as Arduino killer
Why? Only cowards read the docs. http://docs.micropython.org/en/latest/r ... kages.html
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/
Re: Micropython as Arduino killer
Ît cannot be said often enough:
The documentation of Micropython is good. It is reccomended for everyone to read it COMPLETELY even twice or thrice, to have an impression, what can be expected where is what. Thanks a lot to everyone who contributed, especially Paul, Damien, and Peter.
The documentation of Micropython is good. It is reccomended for everyone to read it COMPLETELY even twice or thrice, to have an impression, what can be expected where is what. Thanks a lot to everyone who contributed, especially Paul, Damien, and Peter.
Re: Micropython as Arduino killer
I agree the documentation is good... for MicroPython. The documentation you find for any particular module though will depend on the developer. If we are talking about helping new users find and add functionality, they will not find a homogeneous experience each time.
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Micropython as Arduino killer
In addition to the approach to cross-installing pointed out by Paul, there is also micropip. This avoids the need to install the Unix build of MicroPython: you can download the package to your PC and copy it to the device by any means.
Micropip may be found here.
Micropip may be found here.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: Micropython as Arduino killer
Nice!
I'd be willing to work on the wiki if anyone thinks it would be useful.pythoncoder wrote: ↑Sun Dec 02, 2018 7:42 amFor some reason the MicroPython wiki is rather little-used. Some time ago I offered to remove the outdated content but Damien wasn't keen on the idea. It would be good if more library authors used it to promote their work.
Re: Micropython as Arduino killer
I somehow hadn't come across micropip before; that's really helpful, thanks Peter!pythoncoder wrote: ↑Wed Dec 12, 2018 1:19 pmIn addition to the approach to cross-installing pointed out by Paul, there is also micropip. This avoids the need to install the Unix build of MicroPython: you can download the package to your PC and copy it to the device by any means.
I'd certainly appreciate having up-to-date information on the wiki...so yes, I for one would think it would be useful. Worth noting that we also have the 'dev' wiki that also needs attention if we're going to keep it maintained...
One of the other tasks I need to do in the next week or two is to link to a bunch of useful MicroPython peripheral drivers; There's a start on the wiki and I am planning to extend it.