Open
Description
The code example in the docs fails with a surprising traceback.
rtc = machine.RTC()
rtc.init((2014, 5, 1, 4, 13, 0, 0, 0))
Outcome:
MicroPython v1.12-61-g0f16eeab2 on 2020-01-16; PYBv1.0 with STM32F405RG
Type "help()" for more information.
>>>
>>> from machine import RTC
>>> rtc = RTC()
>>> 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