MicroPython on the Huzzah (ESP8266)
Getting started / setup
To set up your Adafruit Feather Huzzah with MicroPython, check out the multi-part instructions.
"Tutorial 1: Getting Micropython on your Board" is for deploying the MicroPython firmware onto your Huzzah.
"Tutorial 2: Using MicroPython on the Adafruit Feather Huzzah" explains how to use the MicroPython command line and Serial monitor, automatically connect to WiFi upon bootup, and transfer scripts between the board and your computer.
Additionally, there are Thingworx Tutorials and Thingworx Example Projects.
"Tutorial 1: Getting Micropython on your Board" is for deploying the MicroPython firmware onto your Huzzah.
"Tutorial 2: Using MicroPython on the Adafruit Feather Huzzah" explains how to use the MicroPython command line and Serial monitor, automatically connect to WiFi upon bootup, and transfer scripts between the board and your computer.
Additionally, there are Thingworx Tutorials and Thingworx Example Projects.
tips AND RESOURCES
FILE TRANSFER:
- Use the MicroPython IDE (available here) to interact with code on the device.
THIS IS BETTER THAN THE "AMPY" OPTION EXPLAINED BELOW!!! - "ampy" is a command line tool useful for accessing and manipulating the files on your HUZZAH. More information for how to install ampy and use it are included in "Tutorial 1: Getting Micropython on your Board".
"ampy --help" results
PIN INFO:
For pin info on the Huzzah (and most other ESP8266 boards), refer to the Adafruit Feather Huzzah Pinout Guide.
MICROPYTHON:
For MicroPython information, use the MicroPython Documentation for all ESP-8266 Boards (including the Huzzah). Particularly useful sections:
CHALLENGES
HINT: Check out the Tips and Resources. They're all really important.
- Get the board to print "Hello, World!" to the serial monitor using the built-in "print()" command.
- Connect a button to the board and rapidly record the state/value of the button to the serial monitor using a loop.
- Connect an LED and get it to turn on when you press the button.
- Run a Servo motor using the PWM capabilities of MicroPython / Huzzah.
- Control the Servo motor using various sensors, buttons, or other controls.