// Board Library : esp32 by Espressif 3.0.0-rc1
// Board Select : XIAO_ESP32C6, XIAO_ESP32S3, XIAO_ESP32C3
// ArduinoIDE compile options left at default
// Vbat = 3.8V
void setup() {
esp_deep_sleep_start();
}
void loop() {
}
Try it out with this sketch.
You might also find the link below helpful.