diff options
author | Mike Causer <mcauser@gmail.com> | 2017-10-06 01:48:43 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-10-10 15:22:23 +1100 |
commit | f599a380591df2a7bb466eae6a4144634409821b (patch) | |
tree | fca4d3b752ed82cfd101cf74b772009f5c0280db | |
parent | dc92f1c4ee0924cff0b33b5061622f0621e71eac (diff) |
docs/esp8266/quickref: Add quickref info for RTC class.
-rw-r--r-- | docs/esp8266/quickref.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/esp8266/quickref.rst b/docs/esp8266/quickref.rst index ccf6365c8..c510e4064 100644 --- a/docs/esp8266/quickref.rst +++ b/docs/esp8266/quickref.rst @@ -223,6 +223,17 @@ and is accessed via the :ref:`machine.I2C <machine.I2C>` class:: buf = bytearray(10) # create a buffer with 10 bytes i2c.writeto(0x3a, buf) # write the given buffer to the slave +Real time clock (RTC) +--------------------- + +See :ref:`machine.RTC <machine.RTC>` :: + + from machine import RTC + + rtc = RTC() + rtc.datetime((2017, 8, 23, 1, 12, 48, 0, 0)) # set a specific date and time + rtc.datetime() # get date and time + Deep-sleep mode --------------- |