Skip to main content

simplified setup up for esp8266 / esp32 device

Project description

Code style: black


simplified setup up for esp8266 / esp32 device

how it works

the tool discovers first the connected device type with and searches then the available firmware bin files in your download folder. the search follows the naming convention of the micropython release (alphabetical sort).

after that it ask which to install.

optional you can erase flash before installing

cmd line

display all available cmd line options with

python3 -m espsetup -h

usage: espsetup [options]. 
            it's possible to pass custom parameters to esptool, such as
            "-fs 1MB -fm dout 0x0" (e.g. for a esp8266 board).
            the defaults are:
                esp8266: "-z 0x1000", and
                esp32: "--flash_size=detect 0".
            a single '-' will set this to ""
            any custom parameter at the end of the cmd-line
            will be passed over to esptool as specified.

setup an esp32/esp8266 device

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show version info and exit
  -s, --dry             simulate /dry run, only show cmd information
  -port PORT, -p PORT   port/device to use (default: /dev/ttyUSB0)
  -baud BAUD, -b BAUD   baud rate to use (default: 115200)
  -c {ask,y,yes,n,no}, -erase_flash {ask,y,yes,n,no}
                        erase_flash before installing (default: ['ask'])
  -r {ask,y,yes,n,no}, -run_cmd {ask,y,yes,n,no}
                        run final install cmd (default: ['ask'])
  -image IMAGE, -i IMAGE
                        image to install, use 'latest' to install the last version available in your folder(default: show list of available images
                        image search directory (default: ~/Downloads)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for espsetup, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size espsetup-0.0.5.linux-x86_64.tar.gz (7.4 kB) File type Source Python version None Upload date Hashes View
Filename, size espsetup-0.0.5-py3-none-any.whl (7.1 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page