diff options
| author | Daniel Campora <daniel@wipy.io> | 2015-08-11 11:18:02 +0200 |
|---|---|---|
| committer | Daniel Campora <daniel@wipy.io> | 2015-08-16 20:17:52 +0200 |
| commit | ea5061e409449118ed45ce2956800780631bcf9e (patch) | |
| tree | 107417699e361857372ec07670ae68770cf75832 /docs/wipy/quickref.rst | |
| parent | 4c5bfe2d10cd8397e970c4c23f6c15b97133fcc0 (diff) | |
cc3200: Improve callback API.
Rename "wakes" param to "wake_from" and make "value" an object
instead of an integer.
Diffstat (limited to 'docs/wipy/quickref.rst')
| -rw-r--r-- | docs/wipy/quickref.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/wipy/quickref.rst b/docs/wipy/quickref.rst index 3dc12a111..2acbaa541 100644 --- a/docs/wipy/quickref.rst +++ b/docs/wipy/quickref.rst @@ -160,7 +160,7 @@ See :ref:`pyb.RTC <pyb.RTC>` and ``pyb.Sleep``. :: rtc_obj.callback(value=30000, handler=some_handler) # create a RTC alarm that expires in 30s - rtc.callback(value=30000, handler=some_handler, wakes=Sleep.SUSPENDED) + rtc.callback(value=30000, handler=some_handler, wake_from=Sleep.SUSPENDED) # go into suspended mode waiting for the RTC alarm to expire and wake us up Sleep.suspend() @@ -195,7 +195,7 @@ See :ref:`network.WLAN <network.WLAN>` and ``pyb.Sleep``. :: pass print(wifi.ifconfig()) # enable wake on WLAN - wifi.callback(wakes=Sleep.SUSPENDED) + wifi.callback(wake_from=Sleep.SUSPENDED) # go to sleep Sleep.suspend() # now, connect to the FTP or the Telnet server and the WiPy will wake-up |
