Skip to content

Instantly share code, notes, and snippets.

@anoff
Last active April 24, 2017 21:36
Show Gist options
  • Save anoff/c7341f6c448dc4dcb9d947c1433710bf to your computer and use it in GitHub Desktop.
Save anoff/c7341f6c448dc4dcb9d947c1433710bf to your computer and use it in GitHub Desktop.
Working with nodeMCU ๐Ÿค–๐Ÿ‘พ

how to get nodeMCU (lolin nodemcuv3) up and running

flash ESP8266 with arduino IDE

Pro:

  • no platform issues
  • based on familiar arduino IDE

Con:

  • only does C code
  • requires custom board

Following this tutorial it is quite easy to verify that your MCU works correctly. This uses C code though ๐Ÿ˜“

Here is an alternative tutorial that goes through similar setup steps but has a different demo code.

CLI magic ๐Ÿ”ฎ

Pro:

  • should be cross platform (only tried macos)

Con:

  • no GUI
  • some basic python skills

Installation:

  1. install esptool.py pip install esptool which makes the CLI available via esptool.py
  2. make sure you have python2
  3. install pyserial for your local python2 environment
  4. clone/download luatool.py

Usage:

  1. build custom firmware (select required modules): https://nodemcu-build.com/index.php
  2. flash the firmware using esptool.py -p /dev/tty.wchusbserial1410 write_flash -fm qio 0x00000 fw.bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment