implement left/right with callback

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2025-06-15 00:49:30 +02:00
parent 52a49363eb
commit 2191174681
29 changed files with 1783 additions and 641 deletions

View File

@@ -1,6 +1,6 @@
if (DEFINED ENV{IDF_PATH})
idf_component_register(SRCS
PushButton.cpp
persistence.c
INCLUDE_DIRS "include"
)
return()
@@ -10,7 +10,7 @@ cmake_minimum_required(VERSION 3.30)
project(ruth)
add_library(${PROJECT_NAME} STATIC
PushButton.cpp
persistence.c
)
include_directories(include)

View File

@@ -1 +0,0 @@
#include "include/PushButton.h"

View File

@@ -1,9 +0,0 @@
#pragma once
#define BUTTON_UP 0
#define BUTTON_DOWN 1
#define BUTTON_LEFT 2
#define BUTTON_RIGHT 3
#define BUTTON_SELECT 4
#define BUTTON_BACK 5

View File

@@ -0,0 +1,8 @@
#pragma once
typedef struct
{
char *name;
void (*save)(const char *key, const char *value);
} persistence_t;

View File

@@ -0,0 +1,3 @@
//
// Created by Siegmund, Peter on 14.06.25.
//