Updated Learn MicroPython (markdown)

master
Jim Mussared 2022-08-31 12:24:41 +10:00
rodzic 0b2a36ebbc
commit 09f6a847a4
1 zmienionych plików z 4 dodań i 17 usunięć

@ -7,25 +7,12 @@ This means that MicroPython is *very close* to Python, but is missing a few of t
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](https://docs.python.org/3.4/) -- standard Python documentation, start with the [Tutorial](https://docs.python.org/3.4/)
- [Python documentation](https://docs.python.org/) -- standard Python documentation, start with the [Tutorial](https://docs.python.org/3/tutorial/index.html)
- [learn Python the hard way](http://learnpythonthehardway.org/book/) -- 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](https://www.youtube.com/watch?v=tKTZoB2Vjuk)
- [Google's Python class](https://www.youtube.com/watch?v=tKTZoB2Vjuk)
- *Please post more helpful full classes for beginners*
## Diving into micro-Python
Now that you have learned the basics of Python, it is important to review the [[Differences to CPython|Differences]] 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](https://github.com/micropython/micropython-lib)
### pyboard
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|Boards Summary]]
For more documentation and guides, check out the [official pyboard documentation](http://docs.micropython.org/en/latest/).
#### The pyb module
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
### Linux
If you don't have the pyboard, it is [[easy to get started on linux machines|Getting Started]]. You can also [try out the pyboard online](http://micropython.org/live/)
## Diving into MicroPython
Now that you have learned the basics of Python, it is important to review the [[Differences to CPython|Differences]] wiki page. MicroPython supports a significant amount of Python language including numeric types, strings, tuples, lists, dictionaries, classes (with inheritance) and many more.