Add GPIO app and update CI (#5)

This commit is contained in:
Ken Van Hoeylandt
2025-10-05 18:43:35 +02:00
committed by GitHub
parent b6cd11221e
commit 37c5002c5d
13 changed files with 1004 additions and 7 deletions
+32
View File
@@ -0,0 +1,32 @@
#pragma once
#include "tt_app.h"
#include "tt_mutex.h"
#include "tt_timer.h"
#include <lvgl.h>
#include <vector>
class Application final {
std::vector<lv_obj_t*> pinWidgets;
std::vector<bool> pinStates;
TimerHandle timer;
MutexHandle mutex;
static lv_obj_t* createGpioRowWrapper(lv_obj_t* parent);
static void onTimer(void* parameter);
public:
void onCreate(AppHandle app);
void onDestroy(AppHandle app);
void onShow(AppHandle context, lv_obj_t* parent);
void onHide(AppHandle context);
void startTask();
void stopTask();
void updatePinStates();
void updatePinWidgets();
};