Skip to content

Multiple Digital Writes: Feature Proposal #181

@dtex

Description

@dtex

On digitalWrites I would like to be able to call writeToTransport once instead of once for each pin.

My plan was to either overload digitalWrite with arrays or create a new method (i.e. digitalWriteMulti).

For example:

// digitalWriteMulti(pins, values);

digitalWriteMulti([1,2,3,4], [1,0,1,0]);
// Results in one writeToTransport on nextTick

- or -

digitalWriteMulti([1,2,9,11], [1,0,1,0]);
// Results in two writeToTransports on nextTick. One for each port

I want this because I believe that I can get a reasonable speed on stepper motors with whole or half steps using just standardFirmata.

Perhaps there is already a way to do this?

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