8000 machine.RTC.init throws exception on Pyboard 1.0 · Issue #5545 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content
machine.RTC.init throws exception on Pyboard 1.0 #5545
Open
@peterhinch

Description

@peterhinch

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0