This page is to Setup and Config MircoPython
Hardware and Software
Hardware : ESP32, ESP8266 and Arduino
Software : MircoPython :http://micropython.org/
Notes- Master Page : http://micropython.org/
- Firmware : http://micropython.org/download
- Document : http://docs.micropython.org/en/latest/index.html
- Setup RELP : https://docs.micropython.org/en/latest/esp8266/tutorial/repl.html#using-the-repl
ampy : Shell Upload and Download Script and any file format into ESP32
- pip install ampy
- ampy --port COM3 put <filename> : upload
- ampy --port COM3 run <filename> : upload and run
- ampy --port COM3 get <filename> : download and list on screen
- ampy --port COM3 get <filename> C:\<filename> : download and save into local dir
- ampy --port COM3 rm <filename> : delete file
- ampy --port COM3 ls : List All file on ESP device
ERROR ampy : - ERROR ---------------------
- File "c:\users\sanki\appdata\local\programs\python\python37-32\lib\site-packages\ampy\pyboard.py", line 192, in enter_raw_repl
- raise PyboardError('could not enter raw repl')
- ampy.pyboard.PyboardError: could not enter raw repl
- SOLVE ------------------------ reference : http://marsdiy.blogspot.com/2018/06/nodemcumircopythoncould-not-enter-raw.html
- open and edit file from : C:\Users\sanki\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\ampy\pyboard.py
- Around Line 191 : add time.sleep(2)
- while n > 0:
- self.serial.read(n)
- n = self.serial.inWaiting()
- time.sleep(2)
- self.serial.write(b'\r\x01') # ctrl-A: enter raw REPL
Setup webrepl : Web upload and download by HTML
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Examples
ssd1306 Example - copy library on Device (e.g. https://github.com/adafruit/micropython-adafruit-ssd1306)
Examples
EXample
|
|