Low frequency RFID app [Read stage] (#385)
* App Lfrfid: init * HAL-resources: add external gpios * HAL-pwm: fix frequency calculation * App LFRFID: generic manchester decoder * App LFRFID: em-marine decoder * App iButton: fix dwt timing acquire * App LFRFID: rfid reader * App LFRFID: temporary read keys on read scene * App LFRFID: remove atomic bool init. * App LFRFID: add *.c to build * App LFRFID: unstable HID decoder * App LFRFID: HID-26 reading * HAL OS: disable sleep * App LFRFID: HID-26 reader: remove debug * App LFRFID: static data decoder-analyzer * App LFRFID: very raw Indala decoder * App LFRFID: multiprotocol reader * App LFRFID: more reliable HID decoder * App LFRFID: syntax fix * App LFRFID: simple read scene * Gui: force redraw on screen stream connect * HAL-OS: allow sleep * App LFRFID: notify api, tune view, tune scene * App LFRFID: simple rfid emulator * App LFRFID: more scenes, more reliable EM decoder. * App LFRFID: format fix * App LFRFID: warning fix * Api-hal-resources: add rfid pins, rename external pins * App LFRFID: remove unused emulator * App LFRFID: use new gpio hal api * App accessor: use new ext gpio name * App LFRFID: remove unused emulator * App LFRFID: remove debug gpio * Api-hal-resources: alternate functions init * Api-hal-rfid: new api * Api-hal-ibutton: new api * Api-hal: new headers * App LFRFID: use new api in reader subroutines * App LFRFID: use new api in emulator subroutines * App LFRFID: remove old app * App LFRFID, App iButton: fix memleak * Api-hal-rfid: comments * App LFRFID: pulse joiner helper, it combines pulses of different polarity into one pulse suitable for a timer * App LFRFID: pulse joiner, now can accept only ne pulse * App LFRFID: pulse joiner, fixes * App LFRFID: EM encoder and emulation * App LFRFID: format fixes * App LFRFID: emmarine encoder cleanup * App LFRFID: HID Encoder blank * App LFRFID: Indala Encoder blank
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#include "lf-rfid-scene-emulate-emmarine.h"
|
||||
|
||||
#include "../lf-rfid-app.h"
|
||||
#include "../lf-rfid-view-manager.h"
|
||||
#include "../lf-rfid-event.h"
|
||||
#include "../helpers/key-info.h"
|
||||
|
||||
void LfrfidSceneEmulateEMMarine::on_enter(LfrfidApp* app) {
|
||||
LfrfidAppViewManager* view_manager = app->get_view_manager();
|
||||
|
||||
Popup* popup = view_manager->get_popup();
|
||||
popup_set_header(popup, "LF-RFID", 64, 16, AlignCenter, AlignBottom);
|
||||
app->set_text_store("EM emulation");
|
||||
popup_set_text(popup, app->get_text_store(), 64, 22, AlignCenter, AlignTop);
|
||||
|
||||
view_manager->switch_to(LfrfidAppViewManager::ViewType::Popup);
|
||||
app->get_emulator()->start(RfidTimerEmulator::Type::EM);
|
||||
}
|
||||
|
||||
bool LfrfidSceneEmulateEMMarine::on_event(LfrfidApp* app, LfrfidEvent* event) {
|
||||
bool consumed = false;
|
||||
|
||||
return consumed;
|
||||
}
|
||||
|
||||
void LfrfidSceneEmulateEMMarine::on_exit(LfrfidApp* app) {
|
||||
LfrfidAppViewManager* view_manager = app->get_view_manager();
|
||||
|
||||
Popup* popup = view_manager->get_popup();
|
||||
popup_set_header(popup, NULL, 0, 0, AlignCenter, AlignBottom);
|
||||
popup_set_text(popup, NULL, 0, 0, AlignCenter, AlignTop);
|
||||
|
||||
app->get_emulator()->stop();
|
||||
}
|
12
applications/lf-rfid/scene/lf-rfid-scene-emulate-emmarine.h
Normal file
12
applications/lf-rfid/scene/lf-rfid-scene-emulate-emmarine.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
#include "lf-rfid-scene-generic.h"
|
||||
#include "../helpers/key-info.h"
|
||||
|
||||
class LfrfidSceneEmulateEMMarine : public LfrfidScene {
|
||||
public:
|
||||
void on_enter(LfrfidApp* app) final;
|
||||
bool on_event(LfrfidApp* app, LfrfidEvent* event) final;
|
||||
void on_exit(LfrfidApp* app) final;
|
||||
|
||||
private:
|
||||
};
|
34
applications/lf-rfid/scene/lf-rfid-scene-emulate-hid.cpp
Normal file
34
applications/lf-rfid/scene/lf-rfid-scene-emulate-hid.cpp
Normal file
@@ -0,0 +1,34 @@
|
||||
#include "lf-rfid-scene-emulate-hid.h"
|
||||
|
||||
#include "../lf-rfid-app.h"
|
||||
#include "../lf-rfid-view-manager.h"
|
||||
#include "../lf-rfid-event.h"
|
||||
#include "../helpers/key-info.h"
|
||||
|
||||
void LfrfidSceneEmulateHID::on_enter(LfrfidApp* app) {
|
||||
LfrfidAppViewManager* view_manager = app->get_view_manager();
|
||||
|
||||
Popup* popup = view_manager->get_popup();
|
||||
popup_set_header(popup, "LF-RFID", 64, 16, AlignCenter, AlignBottom);
|
||||
app->set_text_store("HID emulation");
|
||||
popup_set_text(popup, app->get_text_store(), 64, 22, AlignCenter, AlignTop);
|
||||
|
||||
view_manager->switch_to(LfrfidAppViewManager::ViewType::Popup);
|
||||
app->get_emulator()->start(RfidTimerEmulator::Type::HID);
|
||||
}
|
||||
|
||||
bool LfrfidSceneEmulateHID::on_event(LfrfidApp* app, LfrfidEvent* event) {
|
||||
bool consumed = false;
|
||||
|
||||
return consumed;
|
||||
}
|
||||
|
||||
void LfrfidSceneEmulateHID::on_exit(LfrfidApp* app) {
|
||||
LfrfidAppViewManager* view_manager = app->get_view_manager();
|
||||
|
||||
Popup* popup = view_manager->get_popup();
|
||||
popup_set_header(popup, NULL, 0, 0, AlignCenter, AlignBottom);
|
||||
popup_set_text(popup, NULL, 0, 0, AlignCenter, AlignTop);
|
||||
|
||||
app->get_emulator()->stop();
|
||||
}
|
12
applications/lf-rfid/scene/lf-rfid-scene-emulate-hid.h
Normal file
12
applications/lf-rfid/scene/lf-rfid-scene-emulate-hid.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
#include "lf-rfid-scene-generic.h"
|
||||
#include "../helpers/key-info.h"
|
||||
|
||||
class LfrfidSceneEmulateHID : public LfrfidScene {
|
||||
public:
|
||||
void on_enter(LfrfidApp* app) final;
|
||||
bool on_event(LfrfidApp* app, LfrfidEvent* event) final;
|
||||
void on_exit(LfrfidApp* app) final;
|
||||
|
||||
private:
|
||||
};
|
34
applications/lf-rfid/scene/lf-rfid-scene-emulate-indala.cpp
Normal file
34
applications/lf-rfid/scene/lf-rfid-scene-emulate-indala.cpp
Normal file
@@ -0,0 +1,34 @@
|
||||
#include "lf-rfid-scene-emulate-indala.h"
|
||||
|
||||
#include "../lf-rfid-app.h"
|
||||
#include "../lf-rfid-view-manager.h"
|
||||
#include "../lf-rfid-event.h"
|
||||
#include "../helpers/key-info.h"
|
||||
|
||||
void LfrfidSceneEmulateIndala::on_enter(LfrfidApp* app) {
|
||||
LfrfidAppViewManager* view_manager = app->get_view_manager();
|
||||
|
||||
Popup* popup = view_manager->get_popup();
|
||||
popup_set_header(popup, "LF-RFID", 64, 16, AlignCenter, AlignBottom);
|
||||
app->set_text_store("Indala emulation");
|
||||
popup_set_text(popup, app->get_text_store(), 64, 22, AlignCenter, AlignTop);
|
||||
|
||||
view_manager->switch_to(LfrfidAppViewManager::ViewType::Popup);
|
||||
app->get_emulator()->start(RfidTimerEmulator::Type::Indala);
|
||||
}
|
||||
|
||||
bool LfrfidSceneEmulateIndala::on_event(LfrfidApp* app, LfrfidEvent* event) {
|
||||
bool consumed = false;
|
||||
|
||||
return consumed;
|
||||
}
|
||||
|
||||
void LfrfidSceneEmulateIndala::on_exit(LfrfidApp* app) {
|
||||
LfrfidAppViewManager* view_manager = app->get_view_manager();
|
||||
|
||||
Popup* popup = view_manager->get_popup();
|
||||
popup_set_header(popup, NULL, 0, 0, AlignCenter, AlignBottom);
|
||||
popup_set_text(popup, NULL, 0, 0, AlignCenter, AlignTop);
|
||||
|
||||
app->get_emulator()->stop();
|
||||
}
|
12
applications/lf-rfid/scene/lf-rfid-scene-emulate-indala.h
Normal file
12
applications/lf-rfid/scene/lf-rfid-scene-emulate-indala.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
#include "lf-rfid-scene-generic.h"
|
||||
#include "../helpers/key-info.h"
|
||||
|
||||
class LfrfidSceneEmulateIndala : public LfrfidScene {
|
||||
public:
|
||||
void on_enter(LfrfidApp* app) final;
|
||||
bool on_event(LfrfidApp* app, LfrfidEvent* event) final;
|
||||
void on_exit(LfrfidApp* app) final;
|
||||
|
||||
private:
|
||||
};
|
14
applications/lf-rfid/scene/lf-rfid-scene-generic.h
Normal file
14
applications/lf-rfid/scene/lf-rfid-scene-generic.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
#include "../lf-rfid-event.h"
|
||||
|
||||
class LfrfidApp;
|
||||
|
||||
class LfrfidScene {
|
||||
public:
|
||||
virtual void on_enter(LfrfidApp* app) = 0;
|
||||
virtual bool on_event(LfrfidApp* app, LfrfidEvent* event) = 0;
|
||||
virtual void on_exit(LfrfidApp* app) = 0;
|
||||
virtual ~LfrfidScene(){};
|
||||
|
||||
private:
|
||||
};
|
34
applications/lf-rfid/scene/lf-rfid-scene-read-indala.cpp
Normal file
34
applications/lf-rfid/scene/lf-rfid-scene-read-indala.cpp
Normal file
@@ -0,0 +1,34 @@
|
||||
#include "lf-rfid-scene-read-indala.h"
|
||||
|
||||
#include "../lf-rfid-app.h"
|
||||
#include "../lf-rfid-view-manager.h"
|
||||
#include "../lf-rfid-event.h"
|
||||
#include "../helpers/key-info.h"
|
||||
|
||||
void LfrfidSceneReadIndala::on_enter(LfrfidApp* app) {
|
||||
LfrfidAppViewManager* view_manager = app->get_view_manager();
|
||||
|
||||
Popup* popup = view_manager->get_popup();
|
||||
popup_set_header(popup, "LF-RFID read Indala", 64, 16, AlignCenter, AlignBottom);
|
||||
app->set_text_store("[decoder not implemented]");
|
||||
popup_set_text(popup, app->get_text_store(), 64, 22, AlignCenter, AlignTop);
|
||||
|
||||
view_manager->switch_to(LfrfidAppViewManager::ViewType::Popup);
|
||||
app->get_reader()->start(RfidReader::Type::Indala);
|
||||
}
|
||||
|
||||
bool LfrfidSceneReadIndala::on_event(LfrfidApp* app, LfrfidEvent* event) {
|
||||
bool consumed = false;
|
||||
|
||||
return consumed;
|
||||
}
|
||||
|
||||
void LfrfidSceneReadIndala::on_exit(LfrfidApp* app) {
|
||||
LfrfidAppViewManager* view_manager = app->get_view_manager();
|
||||
|
||||
Popup* popup = view_manager->get_popup();
|
||||
popup_set_header(popup, NULL, 0, 0, AlignCenter, AlignBottom);
|
||||
popup_set_text(popup, NULL, 0, 0, AlignCenter, AlignTop);
|
||||
|
||||
app->get_reader()->stop();
|
||||
}
|
15
applications/lf-rfid/scene/lf-rfid-scene-read-indala.h
Normal file
15
applications/lf-rfid/scene/lf-rfid-scene-read-indala.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
#include "lf-rfid-scene-generic.h"
|
||||
#include "../helpers/key-info.h"
|
||||
|
||||
class LfrfidSceneReadIndala : public LfrfidScene {
|
||||
public:
|
||||
void on_enter(LfrfidApp* app) final;
|
||||
bool on_event(LfrfidApp* app, LfrfidEvent* event) final;
|
||||
void on_exit(LfrfidApp* app) final;
|
||||
|
||||
private:
|
||||
uint32_t success_reads = 0;
|
||||
static const uint8_t data_size = LFRFID_KEY_SIZE;
|
||||
uint8_t last_data[data_size] = {0};
|
||||
};
|
80
applications/lf-rfid/scene/lf-rfid-scene-read-normal.cpp
Normal file
80
applications/lf-rfid/scene/lf-rfid-scene-read-normal.cpp
Normal file
@@ -0,0 +1,80 @@
|
||||
#include "lf-rfid-scene-read-normal.h"
|
||||
|
||||
#include "../lf-rfid-app.h"
|
||||
#include "../lf-rfid-view-manager.h"
|
||||
#include "../lf-rfid-event.h"
|
||||
#include "../helpers/key-info.h"
|
||||
|
||||
void LfrfidSceneReadNormal::on_enter(LfrfidApp* app) {
|
||||
LfrfidAppViewManager* view_manager = app->get_view_manager();
|
||||
|
||||
Popup* popup = view_manager->get_popup();
|
||||
popup_set_header(popup, "LF-RFID read EM & HID", 64, 16, AlignCenter, AlignBottom);
|
||||
app->set_text_store("waiting...");
|
||||
popup_set_text(popup, app->get_text_store(), 64, 22, AlignCenter, AlignTop);
|
||||
|
||||
view_manager->switch_to(LfrfidAppViewManager::ViewType::Popup);
|
||||
app->get_reader()->start(RfidReader::Type::Normal);
|
||||
}
|
||||
|
||||
bool LfrfidSceneReadNormal::on_event(LfrfidApp* app, LfrfidEvent* event) {
|
||||
bool consumed = false;
|
||||
|
||||
if(event->type == LfrfidEvent::Type::Tick) {
|
||||
uint8_t data[data_size];
|
||||
LfrfidKeyType type;
|
||||
|
||||
if(app->get_reader()->read(&type, data, data_size)) {
|
||||
app->notify_green_blink();
|
||||
|
||||
if(memcmp(last_data, data, data_size) == 0) {
|
||||
success_reads++;
|
||||
} else {
|
||||
success_reads = 1;
|
||||
memcpy(last_data, data, data_size);
|
||||
}
|
||||
|
||||
switch(type) {
|
||||
case LfrfidKeyType::KeyEmarine:
|
||||
app->set_text_store(
|
||||
"[EM] %02X %02X %02X %02X %02X\n"
|
||||
"count: %u",
|
||||
data[0],
|
||||
data[1],
|
||||
data[2],
|
||||
data[3],
|
||||
data[4],
|
||||
success_reads);
|
||||
break;
|
||||
case LfrfidKeyType::KeyHID:
|
||||
app->set_text_store(
|
||||
"[HID26] %02X %02X %02X\n"
|
||||
"count: %u",
|
||||
data[0],
|
||||
data[1],
|
||||
data[2],
|
||||
success_reads);
|
||||
break;
|
||||
}
|
||||
popup_set_text(
|
||||
app->get_view_manager()->get_popup(),
|
||||
app->get_text_store(),
|
||||
64,
|
||||
22,
|
||||
AlignCenter,
|
||||
AlignTop);
|
||||
}
|
||||
}
|
||||
|
||||
return consumed;
|
||||
}
|
||||
|
||||
void LfrfidSceneReadNormal::on_exit(LfrfidApp* app) {
|
||||
LfrfidAppViewManager* view_manager = app->get_view_manager();
|
||||
|
||||
Popup* popup = view_manager->get_popup();
|
||||
popup_set_header(popup, NULL, 0, 0, AlignCenter, AlignBottom);
|
||||
popup_set_text(popup, NULL, 0, 0, AlignCenter, AlignTop);
|
||||
|
||||
app->get_reader()->stop();
|
||||
}
|
15
applications/lf-rfid/scene/lf-rfid-scene-read-normal.h
Normal file
15
applications/lf-rfid/scene/lf-rfid-scene-read-normal.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
#include "lf-rfid-scene-generic.h"
|
||||
#include "../helpers/key-info.h"
|
||||
|
||||
class LfrfidSceneReadNormal : public LfrfidScene {
|
||||
public:
|
||||
void on_enter(LfrfidApp* app) final;
|
||||
bool on_event(LfrfidApp* app, LfrfidEvent* event) final;
|
||||
void on_exit(LfrfidApp* app) final;
|
||||
|
||||
private:
|
||||
uint32_t success_reads = 0;
|
||||
static const uint8_t data_size = LFRFID_KEY_SIZE;
|
||||
uint8_t last_data[data_size] = {0};
|
||||
};
|
77
applications/lf-rfid/scene/lf-rfid-scene-start.cpp
Normal file
77
applications/lf-rfid/scene/lf-rfid-scene-start.cpp
Normal file
@@ -0,0 +1,77 @@
|
||||
#include "lf-rfid-scene-start.h"
|
||||
#include "../lf-rfid-app.h"
|
||||
#include "../lf-rfid-view-manager.h"
|
||||
#include "../lf-rfid-event.h"
|
||||
#include <callback-connector.h>
|
||||
|
||||
typedef enum {
|
||||
SubmenuIndexReadNormal,
|
||||
SubmenuIndexReadIndala,
|
||||
SubmenuIndexEmulateEM,
|
||||
SubmenuIndexEmulateHID,
|
||||
SubmenuIndexEmulateIndala,
|
||||
SubmenuIndexTune
|
||||
} SubmenuIndex;
|
||||
|
||||
void LfrfidSceneStart::on_enter(LfrfidApp* app) {
|
||||
LfrfidAppViewManager* view_manager = app->get_view_manager();
|
||||
Submenu* submenu = view_manager->get_submenu();
|
||||
auto callback = cbc::obtain_connector(this, &LfrfidSceneStart::submenu_callback);
|
||||
|
||||
submenu_add_item(submenu, "Read Normal", SubmenuIndexReadNormal, callback, app);
|
||||
submenu_add_item(submenu, "Read Indala", SubmenuIndexReadIndala, callback, app);
|
||||
submenu_add_item(submenu, "Emulate EM", SubmenuIndexEmulateEM, callback, app);
|
||||
submenu_add_item(submenu, "Emulate HID", SubmenuIndexEmulateHID, callback, app);
|
||||
submenu_add_item(submenu, "Emulate Indala", SubmenuIndexEmulateIndala, callback, app);
|
||||
submenu_add_item(submenu, "Tune", SubmenuIndexTune, callback, app);
|
||||
|
||||
view_manager->switch_to(LfrfidAppViewManager::ViewType::Submenu);
|
||||
}
|
||||
|
||||
bool LfrfidSceneStart::on_event(LfrfidApp* app, LfrfidEvent* event) {
|
||||
bool consumed = false;
|
||||
|
||||
if(event->type == LfrfidEvent::Type::MenuSelected) {
|
||||
switch(event->payload.menu_index) {
|
||||
case SubmenuIndexReadNormal:
|
||||
app->switch_to_next_scene(LfrfidApp::Scene::ReadNormal);
|
||||
break;
|
||||
case SubmenuIndexReadIndala:
|
||||
app->switch_to_next_scene(LfrfidApp::Scene::ReadIndala);
|
||||
break;
|
||||
case SubmenuIndexEmulateEM:
|
||||
app->switch_to_next_scene(LfrfidApp::Scene::EmulateEM);
|
||||
break;
|
||||
break;
|
||||
case SubmenuIndexEmulateHID:
|
||||
app->switch_to_next_scene(LfrfidApp::Scene::EmulateHID);
|
||||
break;
|
||||
case SubmenuIndexEmulateIndala:
|
||||
app->switch_to_next_scene(LfrfidApp::Scene::EmulateIndala);
|
||||
break;
|
||||
case SubmenuIndexTune:
|
||||
app->switch_to_next_scene(LfrfidApp::Scene::Tune);
|
||||
break;
|
||||
}
|
||||
consumed = true;
|
||||
}
|
||||
|
||||
return consumed;
|
||||
}
|
||||
|
||||
void LfrfidSceneStart::on_exit(LfrfidApp* app) {
|
||||
LfrfidAppViewManager* view_manager = app->get_view_manager();
|
||||
Submenu* submenu = view_manager->get_submenu();
|
||||
|
||||
submenu_clean(submenu);
|
||||
}
|
||||
|
||||
void LfrfidSceneStart::submenu_callback(void* context, uint32_t index) {
|
||||
LfrfidApp* app = static_cast<LfrfidApp*>(context);
|
||||
LfrfidEvent event;
|
||||
|
||||
event.type = LfrfidEvent::Type::MenuSelected;
|
||||
event.payload.menu_index = index;
|
||||
|
||||
app->get_view_manager()->send_event(&event);
|
||||
}
|
13
applications/lf-rfid/scene/lf-rfid-scene-start.h
Normal file
13
applications/lf-rfid/scene/lf-rfid-scene-start.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
#include "lf-rfid-scene-generic.h"
|
||||
#include "../helpers/rfid-timer-emulator.h"
|
||||
|
||||
class LfrfidSceneStart : public LfrfidScene {
|
||||
public:
|
||||
void on_enter(LfrfidApp* app) final;
|
||||
bool on_event(LfrfidApp* app, LfrfidEvent* event) final;
|
||||
void on_exit(LfrfidApp* app) final;
|
||||
|
||||
private:
|
||||
void submenu_callback(void* context, uint32_t index);
|
||||
};
|
35
applications/lf-rfid/scene/lf-rfid-scene-tune.cpp
Normal file
35
applications/lf-rfid/scene/lf-rfid-scene-tune.cpp
Normal file
@@ -0,0 +1,35 @@
|
||||
#include "lf-rfid-scene-tune.h"
|
||||
#include "../lf-rfid-app.h"
|
||||
#include "../lf-rfid-view-manager.h"
|
||||
#include "../lf-rfid-event.h"
|
||||
#include <callback-connector.h>
|
||||
|
||||
void LfrfidSceneTune::on_enter(LfrfidApp* app) {
|
||||
LfrfidAppViewManager* view_manager = app->get_view_manager();
|
||||
//LfRfidViewTune* tune = view_manager->get_tune();
|
||||
|
||||
view_manager->switch_to(LfrfidAppViewManager::ViewType::Tune);
|
||||
|
||||
reader.start(RfidReader::Type::Indala);
|
||||
}
|
||||
|
||||
bool LfrfidSceneTune::on_event(LfrfidApp* app, LfrfidEvent* event) {
|
||||
bool consumed = false;
|
||||
|
||||
if(event->type == LfrfidEvent::Type::Tick) {
|
||||
LfRfidViewTune* tune = app->get_view_manager()->get_tune();
|
||||
|
||||
if(tune->is_dirty()) {
|
||||
LFRFID_TIM.Instance->ARR = tune->get_ARR();
|
||||
LFRFID_TIM.Instance->CCR1 = tune->get_CCR();
|
||||
}
|
||||
}
|
||||
|
||||
return consumed;
|
||||
}
|
||||
|
||||
void LfrfidSceneTune::on_exit(LfrfidApp* app) {
|
||||
//LfRfidViewTune* tune = app->get_view_manager()->get_tune();
|
||||
|
||||
reader.stop();
|
||||
}
|
13
applications/lf-rfid/scene/lf-rfid-scene-tune.h
Normal file
13
applications/lf-rfid/scene/lf-rfid-scene-tune.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
#include "lf-rfid-scene-generic.h"
|
||||
#include "../helpers/rfid-reader.h"
|
||||
|
||||
class LfrfidSceneTune : public LfrfidScene {
|
||||
public:
|
||||
void on_enter(LfrfidApp* app) final;
|
||||
bool on_event(LfrfidApp* app, LfrfidEvent* event) final;
|
||||
void on_exit(LfrfidApp* app) final;
|
||||
|
||||
private:
|
||||
RfidReader reader;
|
||||
};
|
Reference in New Issue
Block a user