Skip to content

BTNPIN compile time option sets unused buttons to GPIO 0 #3953

@robertvb83

Description

@robertvb83

What happened?

Setting 4 buttons works as expected (buttons GPIO are only set but still disabled) -D BTNPIN=0,4,34,35

However if you set less than 4 buttons, the remaining buttons are set to GPIO 0 automatically. Leading to double entries for 0
-D BTNPIN=0,4

To Reproduce Bug

See above

Expected Behavior

Set other buttons to "unused"

Install Method

Self-Compiled

What version of WLED?

WLED 0.15-b3

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

No response

Anything else?

Screenshot_20240503-141637

Code of Conduct

  • I agree to follow this project's Code of Conduct

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