Code: Select all
MicroPython v1.14-68-gd4b45898f on 2021-02-18; PYBv1.1 with STM32F405RG
Code: Select all
>>> import machine
>>> rtc = machine.RTC()
Code: Select all
>>> rtc.init((2014, 5, 1, 4, 13, 0, 0, 0))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: function takes 1 positional arguments but 2 were given
Code: Select all
>>> print(rtc.now())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'RTC' object has no attribute 'now'
Code: Select all
>>> dir(rtc)
['__class__', 'calibration', 'datetime', 'info', 'init', 'wakeup']
Is there better documentation?
Thanks in advance,
Howard.