How to advance and imporve my MicroPython fu?

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
smssms
Posts: 12
Joined: Tue Feb 14, 2017 8:37 am

How to advance and imporve my MicroPython fu?

Post by smssms » Mon May 29, 2017 8:41 pm

Quite a general question....

I am vaguely competent with Micropython, fumbling through with a lot of trawling forums, cut&paste code snippets and googling to get the job done in a clunky/sledgehammer fashion usually. There seem to be a lot of online courses, books, MOOC, tutorials, etc on various aspects of Python.

Can anyone suggest or recommend any python online courses or MOOC that would have the most cross-over with MicroPython?

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

Re: How to advance and imporve my MicroPython fu?

Post by dhylands » Tue May 30, 2017 12:04 am

Any good introductory course for Python 3 would be good.

MicroPython is a subset of Python 3, with the addition of a bunch of hardware specific classes.

The core part of the language, defining functions, variable usage, creating classes, loops, conditionals, etc is all the same as Python 3.
This Python 3 Tutorial: https://docs.python.org/3/tutorial/ looks like a good starting place.

This page covers most of the differences:
http://docs.micropython.org/en/latest/p ... index.html
but until you get into more advanced python programming, you can probagbly ignore that.

Probably the most significant thing to realize is that the Python Language is different and distinct from all of the libraries which are written using the Python language. Many of the libraries won't work directly on MicroPython. There are some that have had various portions of functionality ported and which you can find here:
https://github.com/micropython/micropython-lib

Most of the libraries that come with regular python assume that there is gobs of memory and so don't run well in the MicroPython environment, so you need to get used to do things at a slightly lower level.

Post Reply