esp32 — ESP32-specific functions
The esp32 module contains functions and classes specifically for controlling the ESP32 module.
Functions
- esp32.wake_on_touch(wake)
Configure whether touch will wake the device from sleep. wake should be a boolean value.
- esp32.wake_on_ext0(pin, level)
Configure how EXT0 will wake the device from sleep.
pin: None or a valid Pin object.level:esp32.WAKEUP_ALL_LOWoresp32.WAKEUP_ANY_HIGH.
- esp32.wake_on_ext1(pins, level)
Configure how EXT1 will wake the device from sleep.
pin: None or a tuple/list of valid Pin objects.level:esp32.WAKEUP_ALL_LOWoresp32.WAKEUP_ANY_HIGH.
- esp32.raw_temperature()
Read the raw value of the internal temperature sensor and return an integer.
- esp32.hall_sensor()
Read the raw value of the internal Hall sensor and return an integer.
Ultra-Low-Power Coprocessor
- class esp32.ULP
This class provides access to the ultra-low-power coprocessor.
- ULP.set_wakeup_period(period_index, period_us)
Set the wakeup period.
- ULP.load_binary(load_addr, program_binary)
Load program_binary into the ULP at the given load_addr.
- ULP.run(entry_point)
Start the ULP running at the given entry_point.