====== Curso Udemi - Micropython ====== IDE editor: https://thonny.org/ https://github.com/thonny/thonny/releases Firmware for Generic ESP32 module http://micropython.org/download/esp32/ Se usa la versión 1.14 por estabilidad: https://micropython.org/resources/firmware/esp32-idf4-20210202-v1.14.bin Packages: https://pypi.org/ Libraries:http://docs.micropython.org/en/latest/library/uos.html Uos(operating systems module) Archivo descargable: {{ :proyectodatos:final_course_scripts_udemy.zip |}} **Differencias entre Python (cPython) y Micropython (uPython)** ^Criterio ^cPython ^ uPython ^ |espacios entre números literales y palabras clave | No | Sí | |Mensajes de error - cantidad de argumentos | No | Se cuenta a sí mismo como argumento | | Formato | exponencial | | | Start/end | no entendí | | | Json | | no identifica las excepciones | **Recursos de MicroPython** * http://docs.micropython.org/en/latest/ * https://awesome-micropython.com/ * https://www.python.org/ **uPython compatible boards** * Pyboard (Pyboard 1, Pyboard D-series,the original MicroPython microcontrollers) * Espressif ESP-based beards (ESP 8266, ESP32 -almost fully supported by Micropython and its community-exc bluetooth) * RP2040 beards(Raspberry Pi Pico - Easiest for Python learning), Feather 2040, ItsyBitsy 2040, Tiny 2040,...) * BBC Micro:Bit - designed for education - https://microbit-micropython.readthedocs.io/en/v1.0.1/ - * STM32 (STM32 Nucleo&Discovery, Espruino Pico - Makers, more- https://micropython.org/stm32/) **Pines y GPOGPIO** (General Purpose Input/Output, Entrada/Salida de Propósito General) es un pin genérico en un chip, cuyo comportamiento (incluyendo si es un pin de entrada o salida) se puede controlar (programar) por el usuario en tiempo de ejecución. {{:proyectodatos:screen_shot_2021-05-09_at_11.32.15_am.png?800|}} https://micropython-docs-esp32.readthedocs.io/en/esp32_doc/esp32/quickref.html#pins-and-gpio **Proceso** 1. Instalar el firmware de ESP32 de Micropython 2. Configurar el "interpreter" en ESP32 (tools/options/interpreter)