37 lines
835 B
C
Executable File
37 lines
835 B
C
Executable File
/*
|
|
* rfid.c -- RFID/NFC reader module (stub)
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*
|
|
* RFID/NFC reader module.
|
|
*
|
|
* Stub: full module surface (init/deinit) so the build links cleanly.
|
|
* against liblvgl.so. Hardware-specific implementation pending.
|
|
*/
|
|
#include "h2_ui.h"
|
|
#include "log_manager.h"
|
|
|
|
static lv_obj_t *rfid_screen = NULL;
|
|
|
|
void rfid_init(lv_obj_t *parent)
|
|
{
|
|
rfid_screen = lv_obj_create(parent);
|
|
lv_obj_set_size(rfid_screen, H2_LCD_WIDTH - 4, H2_LCD_HEIGHT - 4);
|
|
lv_obj_center(rfid_screen);
|
|
|
|
lv_obj_t *lbl = lv_label_create(rfid_screen);
|
|
lv_label_set_text(lbl, "rfid\n(stub)");
|
|
lv_obj_center(lbl);
|
|
|
|
LOG_INF("rfid init");
|
|
}
|
|
|
|
void rfid_deinit(void)
|
|
{
|
|
if (rfid_screen) {
|
|
lv_obj_del(rfid_screen);
|
|
rfid_screen = NULL;
|
|
}
|
|
LOG_INF("rfid deinit");
|
|
}
|