Skip to content

clarify usage of Toggle::inputMode::input_pulldown versus setInverted #2

@JM-FRANCE

Description

@JM-FRANCE

Hi

it's unclear how you would use setInputMode(Toggle::inputMode::input_pulldown) versus setInputInvert(true)

working exemple here with setInputInvert and messing around with the pin state after the begin (which means I overwrite likely what the class has done to the pin which requires intimate knowledge of the library to know in which order to do things)

https://wokwi.com/projects/347839208139784788

Request:

  • how would you use setInputMode() and not have to mess around in the code with pinMode?
  • improvement: possibility to establish the inputMode at constructor level

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