lf-rfid-scene-read-normal.h 421 B

123456789101112131415
  1. #pragma once
  2. #include "lf-rfid-scene-generic.h"
  3. #include "../helpers/key-info.h"
  4. class LfrfidSceneReadNormal : public LfrfidScene {
  5. public:
  6. void on_enter(LfrfidApp* app) final;
  7. bool on_event(LfrfidApp* app, LfrfidEvent* event) final;
  8. void on_exit(LfrfidApp* app) final;
  9. private:
  10. uint32_t success_reads = 0;
  11. static const uint8_t data_size = LFRFID_KEY_SIZE;
  12. uint8_t last_data[data_size] = {0};
  13. };