You are on page 1of 1

esptool.

py --port ESP8266_COM10 erase_flash

esptool.py --port ESP8266_COM10 --baud 115200 write_flash --flash_size=detect 0 adafruit-


circuitpython-feather_huzzah-2.3.1.bin

C:\Python27\Scripts>pip install adafruit-ampy

ampy --help

ampy --port COM10 put ssd1306.mpy (close all python terminal )

ampy --port COM10 --baud 115200 put ssd1306.py (close all python terminal )

ampy --port COM10 --baud 115200 put onewire.py (close all python terminal )

ampy --port COM10 --baud 115200 put ds18x20.py (close all python terminal )

i2c = machine.I2C(scl=machine.Pin(5), sda=machine.Pin(4))

oled = ssd1306.SSD1306_I2C(128, 32, i2c)

oled.fill(0)

oled.text("Micropython on ESP8266", 0, 0)

oled.text("Second line", 0, 10)

oled.text("Third line", 0, 20)

oled.show()

ampy --port COM6 put oled_basic.py

ampy --port COM6 run oled_basic.py

You might also like