Add Serial Console app and update other apps for new SDK (#10)
This commit is contained in:
committed by
GitHub
parent
d33e7a41df
commit
a42f018ddc
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include "ConnectView.h"
|
||||
#include "ConsoleView.h"
|
||||
|
||||
#include <TactilityCpp/App.h>
|
||||
|
||||
class SerialConsole final : public App {
|
||||
|
||||
lv_obj_t* disconnectButton = nullptr;
|
||||
lv_obj_t* wrapperWidget = nullptr;
|
||||
ConnectView connectView = ConnectView([this](auto uart){
|
||||
showConsoleView(std::move(uart));
|
||||
});
|
||||
ConsoleView consoleView;
|
||||
View* activeView = nullptr;
|
||||
|
||||
void stopActiveView();
|
||||
void showConsoleView(std::unique_ptr<Uart> uart);
|
||||
void showConnectView();
|
||||
void onDisconnect();
|
||||
static void onDisconnectPressed(lv_event_t* event);
|
||||
|
||||
public:
|
||||
|
||||
void onShow(AppHandle context, lv_obj_t* parent) override;
|
||||
void onHide(AppHandle context) override;
|
||||
};
|
||||
Reference in New Issue
Block a user