Skip to main content

simplified setup up for esp8266 / esp32 device

Project description

Code style: black


simplified setup 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 --help

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 '*.bin')
                        image search directory (default: ~/Downloads)
                        file pattern (default: 'esp[32|8266]*.bin')

Project details

Download files

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

Source Distribution

espsetup-0.0.6.tar.gz (4.3 kB view hashes)

Uploaded source

Built Distribution

espsetup-0.0.6-py3-none-any.whl (18.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page