diff options
author | Rick Sorensen <rick.sorensen@gmail.com> | 2023-12-26 12:57:46 -0600 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-05-07 17:29:22 +1000 |
commit | 63c30a2dfc3118f2f82693dd96114b1efebf071c (patch) | |
tree | a1b8508a2aceec2a8ae88d55506f1ca4827afa28 /docs/esp32 | |
parent | 595f86155aa76c4fd7c9b46a848023a93f6ddd32 (diff) | |
download | micropython-63c30a2dfc3118f2f82693dd96114b1efebf071c.tar.gz micropython-63c30a2dfc3118f2f82693dd96114b1efebf071c.zip |
esp32/modesp32: Add mcu_temperature() function for C3/S2/S3 devices.
For ESP32C3/S2/S3 IDFv5 exposes new internal temperature API which is
different to the base ESP32, IDFv4.
Thanks to @robert-hh for cleaner code and testing sensor capability in
these devices.
See discussion #10443.
Signed-off-by: Rick Sorensen <rick.sorensen@gmail.com>
Diffstat (limited to 'docs/esp32')
-rw-r--r-- | docs/esp32/quickref.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/esp32/quickref.rst b/docs/esp32/quickref.rst index 3f0db22861..2be1dbadc3 100644 --- a/docs/esp32/quickref.rst +++ b/docs/esp32/quickref.rst @@ -67,6 +67,12 @@ Note that the temperature sensor in the ESP32 will typically read higher than ambient due to the IC getting warm while it runs. This effect can be minimised by reading the temperature sensor immediately after waking up from sleep. +ESP32C3, ESP32S2, and ESP32S3 also have an internal temperature sensor available. +It is implemented a bit differently to the ESP32 and returns the temperature in +Celsius:: + + esp32.mcu_temperature() # read the internal temperature of the MCU, in Celsius + Networking ---------- |