Skip to content

Callback function after Arduino was initialized #14

@nandlab

Description

@nandlab

Hello Dimitry,
I am trying to configure a set of pins as input pullups. I want a function to be called when a pin becomes low or is already low in the beginning.

So I have created a debounce object and registered on_state_changed callbacks for every pin. The problem is, if the pin is already low, the callback is not called.

How should I program it correctly?

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