Skip to content
Snippets Groups Projects
Select Git revision
  • 9b18811951a8a9fff712b300fb481a16c8e61ac4
  • wip-bootstrap default
  • dualcore
  • ch3/leds
  • ch3/time
  • master
6 results

pyb.RTC.rst

Blame
  • pyb.RTC.rst 2.41 KiB

    class RTC -- real time clock

    The RTC is and independent clock that keeps track of the date and time.

    Example usage:

    rtc = pyb.RTC()
    rtc.datetime((2014, 5, 1, 4, 13, 0, 0, 0))
    print(rtc.datetime())

    Constructors

    Create an RTC object.

    Methods