AaronBurchfield / mpython

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hacking around with micropython on esp8266-20170108

installing micropython

  1. download micropython image from https://micropython.org/download
  2. find the serial port the board is on
ls /dev/tty.*
  1. erase existing flash
esptool.py --port /dev/tty.wchusbserial14540 erase_flash
  1. write micropython image
esptool.py --port /dev/tty.wchusbserial14540 --baud 115200 write_flash --flash_size=detect 0 esp8266-20170108-v1.8.7.bin

esptool

serial bootloader for esp8266 boards https://github.com/espressif/esptool

ampy

interact with micropython board over serial https://github.com/adafruit/ampy

  1. tell ampy which interface to use
export AMPY_PORT=/dev/tty.wchusbserial14440
  1. update boot script
ampy put boot.py
  1. update main script
ampy put main.py

About


Languages

Language:Python 75.1%Language:HTML 24.9%