Skip to content

[Feature Request]: Define BUTTON_PIN for rp2040-lora #5566

@enif1

Description

@enif1

Platform

RP2040

Description

After easily adding an OLED display to my rp2040-lora, I thought adding a button would be just as easy. But all my trials were without success. When I finally looked at the source, I realized that for this device BUTTON_PIN was undefined, since the usual pin 17 was already used for LORA_DIO4. Looking further into the source, I realized that for a pin to be assigned to the button in the device configuration, BUTTON_PIN must be defined in the source.

Thus my feature request: Would it be possible to change rp2040-lora/variant.h to (re)define BUTTON_PIN to some unused pin (e.g. pin 21) instead of undefining it? This way, the corresponding code would be compiled into the firmware and the user could easily add a button to any available pin (redefining the pin if necessary in the device configuration).

Thank you!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions