-
Notifications
You must be signed in to change notification settings - Fork 0
Learn Micropython
MicroPython is a Python interpreter (with partial native code compilation feature). It provides subset of Python 3.4 features, implemented for embedded processors and constrained systems.
This means that micropython is very close to python, but is missing a few of the features.
Python is an easy to learn, well documented programming language. Learning python is the first step to learning micropython. It is recommended that you learn python 3.4 or greater, since that is the version that micropython is based off of.
Tutorials:
- standard python documentation -- standard python documentation, start with the Tutorial
- learn python the hard way -- a certain style of learning that works well for many people. The "learn by doing" approach.
- Videos are a great way to learn
- Google python class
- Please post more helpful full classes for beginners
Now that you have learned the basics of python, it is important to review the Differences to CPython wiki page. Micropython supports surprisingly large part of the python language including numeric types, strings, tuples, lists, dictionaries, classes (with inheritance) and many more. However, it's "batteries included" philosophy is reduced in order to keep everything small, with the standard library modules being supported in micropython-lib
The pyboard is the official implementation of micropython on a microcontroller chip. Support for more microcontrollers and platforms is ongoing and listed at Boards Summary
For more documentation and guides, check out the official pyboard documentation.
This module allows access to the internal peripherals of the microcontroller chip on which micropython is implemented, such as pins, ADC, pwm, timers, I2c and other peripherals.
Documentation: http://docs.micropython.org/en/latest/library/pyb.html
If you don't have the pyboard, it is easy to get started on linux machines. You can also try out the pyboard online