Seeeduino xiao rp2040 Sleep mode arduino IDE

I want to use it for a long time while connected to the battery, so I’m looking for a function that puts it in sleep mode when I press a button.

Do you know if there are any libraries or methods that can be used with the Arduino IDE?
Thanks for the help.

We currently do not have a sleep mode developed for the XIAO RP2040. You may consider the following to use XIAO BLE.

Thank you for the information

I have an additional question.

Do you happen to know if there is such a function in Python?

I already bought the RP2040…

It is not excluded that some expert may have implemented the sleep mode code of the RP2040 chip and shared it. However, no official tests have been carried out on this.

Thank you so much for your help!
Consider another microcomputer