CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
BlePairingView.h
Go to the documentation of this file.
1#pragma once
2
3#include "cdc_ui/IView.h"
4#include <cstdint>
5
6namespace cdc::ui {
7
19class BlePairingView : public ViewBase {
20public:
21 void onEnter(void* context) override;
22 void onExit() override;
23 void onTick(uint32_t nowMs) override;
24 void render(bool partial) override;
25 InputResult onKey(char key) override;
26 const char* getName() const override { return "BlePairingView"; }
27
28private:
29 uint32_t lastUpdate_ = 0;
30 bool lastConnected_ = false;
31};
32
33} // namespace cdc::ui
Discoverable/pairing-mode screen.
void onEnter(void *context) override
void render(bool partial) override
void onTick(uint32_t nowMs) override
const char * getName() const override
InputResult onKey(char key) override
Centralized key-code constants for cdc_views.
Definition IModule.h:8
InputResult
Definition IView.h:10