NodeMCU Projects

= Micropython =

Basics
sudo pip install esptool esptool.py --port /dev/ttyUSB0 erase_flash esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect 0 ~/Desktop/esp8266-20171101-v1.9.3.bin
 * Installing:

sudo apt install picocom picocom /dev/ttyUSB0 -b115200
 * Connecting via Terminal:

import webrepl_setup
 * Connecting via REPL(web):

If you disabled automatic start-up on boot, you may run configured daemon on demand using: import webrepl webrepl.start

import os os.listdir
 * Checking filesystem:

os.mkdir('dir')
 * Create directories:

os.remove('data.txt')
 * Remove entries:

import machine machine.freq               # get the current frequency of the CPU machine.freq(160000000)      # set the CPU frequency to 160 MHz
 * Checking Machine Frequency & Overclocking:

import network; ap = network.WLAN(network.AP_IF); print(ap.config('essid'));
 * Check AP Name:

import network; ap = network.WLAN(network.AP_IF); ap.active(True); ap.config(essid='MyESP8266', authmode=network.AUTH_WPA_WPA2_PSK, password='mypassword'); print(ap.config('essid'));
 * Change AP name and password:

Projects

 * Playing with GPIO:


 * References