Files
tactility_apps/Apps/SerialConsole/main/Source/SerialConsole.h
Shadowtrance dbf850c434 Fixes and new apps (#30)
- M5 Unit Modules library + M5 Unit Test app
- Minor fixes for TodoList, TwoEleven, Snake, Brainfuck and Breakout
- Fixed SerialConsole to use the uart controller as it was broken in one of the many updates
- Fixed keyboard input in TwoEleven, Breakout, Magic8Ball and Snake
- Bluetooth Media Keys app, supports pressing physical keys to trigger the corresponding buttonmatrix button
- Epub Reader app
2026-06-07 15:56:32 +02:00

29 lines
678 B
C++

#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](Device* dev){
showConsoleView(dev);
});
ConsoleView consoleView;
View* activeView = nullptr;
void stopActiveView();
void showConsoleView(Device* dev);
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;
};