You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
710 B
42 lines
710 B
2 years ago
|
/*
|
||
|
* Copyright 2023 jacqueline <me@jacqueline.id.au>
|
||
|
*
|
||
|
* SPDX-License-Identifier: GPL-3.0-only
|
||
|
*/
|
||
|
|
||
2 years ago
|
#pragma once
|
||
|
|
||
|
#include <atomic>
|
||
|
#include <cstdbool>
|
||
2 years ago
|
#include <memory>
|
||
2 years ago
|
|
||
|
#include "freertos/FreeRTOS.h"
|
||
|
#include "freertos/task.h"
|
||
2 years ago
|
#include "freertos/timers.h"
|
||
2 years ago
|
|
||
2 years ago
|
#include "display.hpp"
|
||
1 year ago
|
#include "lvgl_input_driver.hpp"
|
||
2 years ago
|
#include "screen.hpp"
|
||
2 years ago
|
#include "themes.hpp"
|
||
2 years ago
|
#include "touchwheel.hpp"
|
||
2 years ago
|
|
||
|
namespace ui {
|
||
|
|
||
2 years ago
|
class UiTask {
|
||
|
public:
|
||
|
static auto Start() -> UiTask*;
|
||
|
~UiTask();
|
||
|
|
||
1 year ago
|
auto input(std::shared_ptr<input::LvglInputDriver> input) -> void;
|
||
2 years ago
|
|
||
|
private:
|
||
|
UiTask();
|
||
|
|
||
|
auto Main() -> void;
|
||
|
|
||
1 year ago
|
std::shared_ptr<input::LvglInputDriver> input_;
|
||
2 years ago
|
std::shared_ptr<Screen> current_screen_;
|
||
|
};
|
||
2 years ago
|
|
||
|
} // namespace ui
|