Building and Running MicroPython on the ESP8266
Created by Tony DiCola
Last updated on 2016-11-30 05:23:34 AM UTC
2
3
4
4
4
4
4
5
6
7
7
7
7
7
8
8
8
10
10
10
11
Guide Contents
Guide Contents
Overview
Build Firmware
Easy Install
Toolchain Setup
Dependencies
Provision Virtual Machine
Compile ESP Open SDK
Compile MicroPython Firmware
Flash Firmware
esptool.py Flasher
Dependencies
Installation
Flash Firmware
nodemcu-flasher Tool (Windows Only)
Installation
Flash Firmware
MicroPython Usage
GPIO Access
WiFi Access
Running Code From A Script
© Adafruit Industries
https://learn.adafruit.com/building-and-running-micropython-on-the-
esp8266
Page 2 of 12
Overview
Since this guide was published you can now load MicroPython on the ESP8266 using pre-built firmware images that greatly simplify the process.
See the updated loading MicroPython guide here: https://learn.adafruit.com/micropython-basics-how-to-load-micropython-on-a-board
MicroPython (http://adafru.it/f9W) is an awesome little Python interpretor that can run on embedded platforms. Using the familiar Python
programming language (http://adafru.it/deW) you can talk to hardware and control it, much like controlling hardware with an Arduino or other
embedded board. The MicroPython board (http://adafru.it/2390) makes it easy to get started using MicroPython, but did you know you can use
MicroPython on other platforms like the nifty ESP8266 WiFi module (http://adafru.it/f9X)? Thanks to recent contributions to MicroPython you can
turn an ESP8266 into a MicroPython device, and this guide will show you how to get started by compiling and installing MicroPython firmware for
the ESP8266!
Before you get started one thing to note is that MicroPython's support for the ESP8266 is still in very early stages of development and not all
MicroPython board functionality is available. Currently you can access GPIO pins, connect to a WiFi network, and talk to the internet using a
low-level socket-like interface with MicroPython on the ESP8266. Access to I2C, SPI, or other parts of hardware are not yet supported--consider
MicroPython on the ESP8266 just for advanced users right now!
Update August 2016: Since this guide was published MicroPython on the ESP8266 has evolved significantly! Support for the ESP8266 is
now quite good and worth checking out even for casual users. See these later guides that explain what is MicroPython and how to
more easily load firmware on the board:
MicroPython Basics: What is MicroPython? (http://adafru.it/pMb)
MicroPython Basics: How to load MicroPython on a Board (http://adafru.it/pNB)
However if you're interested in hacking on and even contributing to MicroPython for the ESP8266 this guide will show you how to setup a toolchain
for building the MicroPython ESP8266 firmware. You can even use the toolchain built from this guide to create other ESP8266 projects!
Also many thanks to the contributors of the MicroPython (http://adafru.it/f9W), ESP open SDK (http://adafru.it/f9Y), and
esptool (http://adafru.it/f9Z) projects. These excellent open source projects make possible this and other awesome MicroPython & ESP8266
projects--thanks!
© Adafruit Industries
https://learn.adafruit.com/building-and-running-micropython-on-the-
esp8266
Page 3 of 12

2390

Mfr. #:
Manufacturer:
Pomona Electronics
Description:
Blue Aluminum Die Cast Aluminum Box
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet