Skip to content

mux.read(..) apparently doesn't work in setup() #7

Open
@fernando-inf

Description

@fernando-inf

Hello, in order to simplify my code (to later use the Bounce2 library) I try to create an array of this type before void setup:

int buttonPin [] = {mux.read (0), mux.read (1), mux.read (2), mux.read (3), ... }

However, renaming mux.read (i) only works if it is done inside the void loop.

Am I right or am I doing something wrong?

(I´m not a developer, I´m starting on this. )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions