WeMos WiFi & Bluetooth Battery

System

Platform Espressif 32: Espressif Systems is a privately held fabless semiconductor company. They provide wireless communications and Wi-Fi chips which are widely used in mobile devices and the Internet of Things applications.

Microcontroller

ESP32

Frequency

240MHz

Flash

4MB

RAM

320KB

Vendor

WEMOS

Configuration

Please use wemosbat ID for board option in “platformio.ini” (Project Configuration File):

[env:wemosbat]
platform = espressif32
board = wemosbat

You can override default WeMos WiFi & Bluetooth Battery settings per build environment using board_*** option, where *** is a JSON object path from board manifest wemosbat.json. For example, board_build.mcu, board_build.f_cpu, etc.

[env:wemosbat]
platform = espressif32
board = wemosbat

; change microcontroller
board_build.mcu = esp32

; change MCU frequency
board_build.f_cpu = 240000000L

Uploading

WeMos WiFi & Bluetooth Battery supports the next uploading protocols:

  • esptool

  • esp-prog

  • jlink

  • olimex-arm-usb-tiny-h

  • olimex-arm-usb-ocd-h

  • olimex-arm-usb-ocd

  • olimex-jtag-tiny

  • minimodule

Default protocol is esptool

You can change upload protocol using upload_protocol option:

[env:wemosbat]
platform = espressif32
board = wemosbat

upload_protocol = esptool

Debugging

PIO Unified Debugger - “1-click” solution for debugging with a zero configuration.

Warning

You will need to install debug tool drivers depending on your system. Please click on compatible debug tool below for the further instructions and configuration information.

You can switch between debugging Tools & Debug Probes using debug_tool option in “platformio.ini” (Project Configuration File).

WeMos WiFi & Bluetooth Battery does not have on-board debug probe and IS NOT READY for debugging. You will need to use/buy one of external probe listed below.

Compatible Tools

On-board

Default

ESP-Prog

Yes

J-LINK

Mini-Module FT2232H

Olimex ARM-USB-OCD

Olimex ARM-USB-OCD-H

Olimex ARM-USB-TINY-H

Olimex ARM-USB-TINY

Frameworks

Name

Description

Arduino

Arduino Wiring-based Framework allows writing cross-platform software to control devices attached to a wide range of Arduino boards to create all kinds of creative coding, interactive objects, spaces or physical experiences.

ESP-IDF

Espressif IoT Development Framework. Official development framework for ESP32.