espidf

Direct access to a few ESP-IDF details. This module should not include any functionality that could be implemented by other frameworks. It should only include ESP-IDF specific things.

Available on these boards
  • AITHinker ESP32-C3S_Kit
  • ATMegaZero ESP32-S2
  • Adafruit Feather ESP32-S2 TFT
  • Adafruit Feather ESP32S2
  • Adafruit FunHouse
  • Adafruit MagTag
  • Adafruit Metro ESP32S2
  • Adafruit QT Py ESP32S2
  • Artisense Reference Design RD00
  • BastWiFi
  • CrumpS2
  • ESP 12k NodeMCU
  • Feather ESP32S2 without PSRAM
  • FeatherS2
  • FeatherS2 Neo
  • FeatherS2 PreRelease
  • Franzininho WIFI w/Wroom
  • Franzininho WIFI w/Wrover
  • Gravitech Cucumber M
  • Gravitech Cucumber MS
  • Gravitech Cucumber R
  • Gravitech Cucumber RS
  • HMI-DevKit-1.1
  • Kaluga 1
  • LILYGO TTGO T8 ESP32-S2 w/Display
  • MORPHEANS MorphESP-240
  • MicroDev microC3
  • MicroDev microS2
  • Oak Dev Tech PixelWing ESP32S2
  • S2Mini
  • S2Pico
  • Saola 1 w/Wroom
  • Saola 1 w/Wrover
  • Targett Module Clip w/Wroom
  • Targett Module Clip w/Wrover
  • Thingz - Galaxia
  • TinyS2
  • nanoESP32-S2 w/Wrover
  • nanoESP32-S2 w/Wroom

espidf.heap_caps_get_total_size() int

Return the total size of the ESP-IDF, which includes the CircuitPython heap.

espidf.heap_caps_get_free_size() int

Return total free memory in the ESP-IDF heap.

espidf.heap_caps_get_largest_free_block() int

Return the size of largest free memory block in the ESP-IDF heap.

espidf.erase_nvs() None

Erase all data in the non-volatile storage (nvs), including data stored by with microcontroller.nvm

This is necessary when upgrading from CircuitPython 6.3.0 or earlier to CircuitPython 7.0.0, because the layout of data in nvs has changed. The old data will be lost when you perform this operation.

exception espidf.MemoryError

Bases: MemoryError

Raised when an ESP IDF memory allocation fails.

Initialize self. See help(type(self)) for accurate signature.