[W600 PICO] Help with deepsleep

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
beantree
Posts: 3
Joined: Thu Aug 18, 2016 11:21 am

[W600 PICO] Help with deepsleep

Post by beantree » Wed Nov 18, 2020 9:35 am

I am struggling to work with deepsleep.

Code: Select all

MicroPython v1.10-282-g6a9b3cb-dirty on 2019-09-17; WinnerMicro module with W600
Type "help()" for more information.
>>> from machine import deepsleep
>>> deepsleep()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: invalid param format

I can't find any documentation on this. I want to put the board into deepsleep and wake it using the WAKEUP pin.
Cn anybody shed some light on this?

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: [W600 PICO] Help with deepsleep

Post by Roberthh » Wed Nov 18, 2020 10:15 am

I cannot find any documentation too. What I understand from the source code:
deepsleep requires two arguments. The first is the type of wakeup, the second the sleep time.

Type of wakeup:
0 GPIO wakeup
1 Timer wakeup.

But that all is in the library of which there is no source code available.

Post Reply