feat(lockscreen): add customizable lockscreen shown on wake/power-on

This commit is contained in:
Justin Oros
2026-04-09 17:20:48 -07:00
parent 4c32a0b950
commit 26f9b6b20c
7 changed files with 921 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#pragma once
#include <Arduino.h>
enum class LockscreenMode : uint8_t {
MODE_OFF = 0,
ENABLED = 1,
};
namespace LockscreenPlugin {
const char* modeName(LockscreenMode mode);
bool shouldLock(LockscreenMode mode);
bool shouldLockOnWake(LockscreenMode mode);
bool shouldLockOnPower(LockscreenMode mode);
void hashPin(const char* pin, char outHash[9]);
bool checkPin(const char* pin, const char* storedHash);
}