Tactility.py 3.0.0 and SDK updates for 0.7.0-dev (#19)
- Remove `Libraries/Str` - Replaced usage of `TactilityC` FreeRtos features with `TactilityFreeRtos` library - Update `tactility.py` - Removed redundant code from `TactilityCpp`
This commit is contained in:
committed by
GitHub
parent
3bc1e7a373
commit
b6c27b64d4
@@ -1,18 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include "tt_app.h"
|
||||
#include "tt_thread.h"
|
||||
|
||||
#include <Str.h>
|
||||
#include <Tactility/Thread.h>
|
||||
|
||||
#include <string>
|
||||
#include <lvgl.h>
|
||||
#include <TactilityCpp/App.h>
|
||||
|
||||
#include <memory>
|
||||
|
||||
class Diceware final : public App {
|
||||
|
||||
AppHandle handle = nullptr;
|
||||
lv_obj_t* spinbox = nullptr;
|
||||
lv_obj_t* resultLabel = nullptr;
|
||||
ThreadHandle jobThread = nullptr;
|
||||
std::unique_ptr<tt::Thread> jobThread = nullptr;
|
||||
uint32_t wordCount = 5;
|
||||
|
||||
static void onClickGenerate(lv_event_t* e);
|
||||
@@ -20,10 +23,10 @@ class Diceware final : public App {
|
||||
static void onSpinboxIncrement(lv_event_t* e);
|
||||
static void onHelpClicked(lv_event_t* e);
|
||||
|
||||
static int32_t jobMain(void* data);
|
||||
int32_t jobMain();
|
||||
|
||||
void startJob(uint32_t jobWordCount);
|
||||
void onFinishJob(Str result);
|
||||
void onFinishJob(std::string result);
|
||||
void cleanupJob();
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user