Just to hold my prototype code for my experiments with ESP32 micropython
sudo esptool.py --chip esp32 --port /dev/ttyUSB0 write_flash -z 0x1000 esp32-idf3-20200205-v1.12-137-gd6a1e45ca.bin
ampy --port /dev/ttyUSB0 put main_motor_control02.py /main.py
picocom /dev/ttyUSB0 -b115200
ctrl-d to reboot and run the main.py ctrl-ax to stop and dropout