-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
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!!!