https://github.com/eggplants/esp32
handle esp32 with micropython and arduino IDE
https://github.com/eggplants/esp32
Last synced: over 1 year ago
JSON representation
handle esp32 with micropython and arduino IDE
- Host: GitHub
- URL: https://github.com/eggplants/esp32
- Owner: eggplants
- Created: 2020-12-23T04:49:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-04T15:10:34.000Z (over 5 years ago)
- Last Synced: 2025-02-06T06:44:21.562Z (over 1 year ago)
- Language: C++
- Homepage:
- Size: 3.19 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# What is this
- handle esp32 with [micropython](https://github.com/micropython/micropython)
- with [arduino ide](https://www.arduino.cc/en/software)
## First
```bash
$ ./allow_dev.sh
```
## Useful links
- ESP32 MicroPython documentation
- ja:
- The reference of Arduino ESP32
- ja:
## Useful commands
### ampy
- write/read file
```bash
$ pip install adafruit-ampy
$ export AMPY_PORT=/dev/ttyUSB0
$ ampy ls
```
### mu-editor
- GUI code editor for micropython
```bash
$ pip install pipenv
$ pipenv --python 3.7
$ pipenv install mu-editor
# not japanese but english
$ LANG=C pipenv run mu-editor
# use latest version
$ git clone https://github.com/mu-editor/mu
$ pyenv global 3.7.9
$ cd mu && python -m pip install -e .
$ mu-editor
```
### picocom
- Connect to REPL through serial communication
```bash
$ sudo apt install picocom
$ picocom /dev/ttyUSB0 -b 115200
```
### fritzing
- Designing Circuits IDE
```bash
$ sudo apt install fritzing
$ fritzing
```
### esptool.py
```bash
$ pip install esptool
$ esptool.py --port /dev/ttyUSB0 erase_flash
# Micropython
$ wget \
"http://micropython.org/resources/firmware/esp32-idf3-20200902-v1.13.bin"
# Original firmware
# Goto: https://github.com/espressif/esp-at/releases/tag/v2.1.0.0_esp32s2
# Download: ESP32-S2-WROOM_AT_Bin_V2.1.0.0.zip
# Copy: factory/factory_WROOM.bin
$ esptool.py --chip esp32 --port /dev/ttyUSB0 write_flash \
-z 0x1000 esp32-*.bin
```