Direct link to uploaded file on github repo
https://raw.githubusercontent.com/{username}/{repo name}/{branche}/{directory + filename}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import network | |
# wlan = network.WLAN(network.STA_IF) | |
# wlan.active(True) | |
# wlan.connect('mthri', '123456789') | |
# print('connecting...') | |
# while not wlan.isconnected(): | |
# pass | |
# print('connected!') |
esptool.py --port <PORT> --baud 460800 write_flash -e --flash_size=detect -fm dout 0 <FIRMWARE ADDRESS>
NOTICE: after install, default baud rate is 115200
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import serial | |
ser = serial.Serial('/dev/ttyACM0', baudrate=9600, timeout=1) | |
data = ser.readline() | |
data = str(data, encoding='utf-8') | |
data = data.strip() | |
ser.close() | |
ser.open() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, sys | |
os.execl(sys.executable, sys.executable, * sys.argv) |
i
x , X
o , O