Fixed arduino ide compile error https://github.com/Xinyuan-LilyGO/LilyGo-LoRa-Series/issues/253
This commit is contained in:
parent
b9b5075a6f
commit
25d0605620
1 changed files with 2 additions and 1 deletions
|
|
@ -227,8 +227,9 @@ void setup()
|
||||||
digitalWrite(RADIO_TCXO_ENABLE, HIGH);
|
digitalWrite(RADIO_TCXO_ENABLE, HIGH);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
const uint8_t btn_num = BUTTON_PIN;
|
||||||
pinMode(BUTTON_PIN, INPUT_PULLUP);
|
pinMode(BUTTON_PIN, INPUT_PULLUP);
|
||||||
button.init(BUTTON_PIN);
|
button.init(btn_num);
|
||||||
ButtonConfig *buttonConfig = button.getButtonConfig();
|
ButtonConfig *buttonConfig = button.getButtonConfig();
|
||||||
buttonConfig->setEventHandler(handleEvent);
|
buttonConfig->setEventHandler(handleEvent);
|
||||||
buttonConfig->setFeature(ButtonConfig::kFeatureClick);
|
buttonConfig->setFeature(ButtonConfig::kFeatureClick);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue