Fix L1 E-Ink InkHUD issues (#10804)

* Fixes

* Update KeyboardApplet.cpp

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
HarukiToreda
2026-06-28 15:27:01 -05:00
committed by GitHub
co-authored by GitHub Ben Meadors Copilot Autofix powered by AI
parent 0baf8b1db6
commit 29b3cfaeca
7 changed files with 245 additions and 15 deletions
@@ -22,6 +22,16 @@
#include "wiring_constants.h"
#include "wiring_digital.h"
namespace
{
void configureWakeOnPress(uint8_t digitalPin)
{
const uint32_t gpioPin = g_ADigitalPinMap[digitalPin];
nrf_gpio_cfg_input(gpioPin, NRF_GPIO_PIN_PULLUP);
nrf_gpio_cfg_sense_set(gpioPin, NRF_GPIO_PIN_SENSE_LOW);
}
} // namespace
/**
* @brief Digital pin to GPIO port/pin mapping table
*
@@ -93,4 +103,9 @@ void initVariant()
pinMode(PIN_LED2, OUTPUT);
digitalWrite(PIN_LED2, LOW);
pinMode(PIN_LED2, OUTPUT);
}
}
void variant_shutdown()
{
configureWakeOnPress(CANCEL_BUTTON_PIN);
}