feat(lockscreen): add customizable lockscreen shown on wake/power-on
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user