scened-app-scene-byte-input.h 421 B

12345678910111213141516171819
  1. #pragma once
  2. #include "../scened-app.h"
  3. class ScenedAppSceneByteInput : public GenericScene<ScenedApp> {
  4. public:
  5. void on_enter(ScenedApp* app, bool need_restore) final;
  6. bool on_event(ScenedApp* app, ScenedApp::Event* event) final;
  7. void on_exit(ScenedApp* app) final;
  8. private:
  9. void result_callback(void* context);
  10. uint8_t data[4] = {
  11. 0x01,
  12. 0xA2,
  13. 0xF4,
  14. 0xD3,
  15. };
  16. };