summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authoruvok2025-07-19 13:21:56 +0200
committeruvok2025-07-19 13:21:56 +0200
commitcde2c46b4fcc027e7e64510a3241c196f6fe5ba0 (patch)
tree1ff1184113fdd63d07a4f2059f32aaf1f0ca5e59 /src/main.cpp
parent7b0712a41a4e861dda0a00be0179880b25a5437a (diff)
Add very ugly prev/next navigation
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index a15b93c..d4b9fd9 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -56,7 +56,12 @@ void setup()
void loop()
{
uint16_t pressDuration = de::uvok::badge::gpio_poll();
- if (pressDuration > PRESS_TIME_BLE_ADV)
+ if (pressDuration < 64)
+ {
+ if (pressDuration == NEXT_KEY) de::uvok::badge::display_next();
+ if (pressDuration == PRV_KEY) de::uvok::badge::display_prev();
+ }
+ else if (pressDuration > PRESS_TIME_BLE_ADV)
{
if (!pAdvertising->isAdvertising())
{