Skip to content

Time based pin toggles hosted on the board #195

Open
@fdattein

Description

@fdattein

I posted this in the mail list and Jeff suggested that I raised a feature request:

I need to be able to do the following:

board.digitalToggle(pin, HIGH, toggleInMilliseconds);

The call would set the pin to HIGH and the board would toggle it back to LOW, when the "toggleInMilliseconds" has expired.

I have been doing this in the client side, but if the client is busy, the timeout won't be honoured exactly. Also, if the client shutdown down (power outage), the pin will remain HIGH for a long time. So, I need to host the toggling logic on the board itself.

In the past, I have driven similar logic with a custom SYSEX function on the board. However, I was wondering if such a common use case isn't something that Firmata could support by default.

Does it fit in Firmata's architecture?

Thanks,
Franklin

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions