Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

i2c.deinit() and increased deep-sleep current #87

Open
@dmartauz

Description

@dmartauz

While typical deep-sleep current of L01 is around 5uA, if machine.deepsleep() is called after i2c.init() followed by i2c.deinit(), the deep-sleep current is much higher - more that 30uA.

I found a workaround - to set SDA and SCL pins to Pin.IN before calling machine.deepsleep().

I guess this Pin re-initialization (or something similar) should be done within i2c.deinit()?

Issue is described in the Pycom forum as well:
https://forum.pycom.io/topic/2008/i2c-deinit-and-machine-deepsleep-on-l01

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions