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

pyb.RTC.rst

Blame
  • user avatar
    Paul Sokolovsky authored
    Class designator will be used as is in indexes, so must match actual class
    name.
    a384a531
    History
    pyb.RTC.rst 2.43 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