diff --git a/README.md b/README.md index 20073c26..10045fe6 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,9 @@ It provides an application framework that is based on code from the [Flipper Zer Tactility features a desktop that can launch apps: -![screenshot of desktop app](docs/pics/screenshot-desktop.png) ![screenshot of files app](docs/pics/screenshot-files.png) ![screenshot of system info app](docs/pics/screenshot-systeminfo.png) +![screenshot of desktop app](docs/pics/screenshot-desktop.png) ![screenshot of files app](docs/pics/screenshot-files.png) + +![screenshot of system info app](docs/pics/screenshot-systeminfo.png) ![hello world app screenshot](docs/pics/screenshot-helloworld.png) Through the Settings app you can connect to Wi-Fi or change the display settings: @@ -37,7 +39,7 @@ UI is created with [lvgl](https://github.com/lvgl/lvgl) which has lots of [widge Creating a touch-capable UI is [easy](https://docs.lvgl.io/8.3/get-started/quick-overview.html) and doesn't require your own render loop! ```c -static void app_show(TT_UNUSED App app, lv_obj_t* parent) { +static void app_show(App app, lv_obj_t* parent) { // Default toolbar with app name and close button lv_obj_t* toolbar = tt_toolbar_create_for_app(parent, app); lv_obj_align(toolbar, LV_ALIGN_TOP_MID, 0, 0); diff --git a/app-esp/src/hello_world/hello_world.c b/app-esp/src/hello_world/hello_world.c index aacc900a..16813bc3 100644 --- a/app-esp/src/hello_world/hello_world.c +++ b/app-esp/src/hello_world/hello_world.c @@ -2,7 +2,7 @@ #include "lvgl.h" #include "ui/toolbar.h" -static void app_show(TT_UNUSED App app, lv_obj_t* parent) { +static void app_show(App app, lv_obj_t* parent) { lv_obj_t* toolbar = tt_toolbar_create_for_app(parent, app); lv_obj_align(toolbar, LV_ALIGN_TOP_MID, 0, 0); diff --git a/app-esp/src/main.c b/app-esp/src/main.c index 1a33e113..c4cb14d5 100644 --- a/app-esp/src/main.c +++ b/app-esp/src/main.c @@ -10,7 +10,7 @@ extern const ServiceManifest wifi_service; extern const AppManifest wifi_connect_app; extern const AppManifest wifi_manage_app; -TT_UNUSED void app_main(void) { +void app_main(void) { static const Config config = { /** * Auto-select a board based on the ./sdkconfig.board.* file diff --git a/app-sim/src/hello_world/hello_world.c b/app-sim/src/hello_world/hello_world.c index 70c28e61..0f057b08 100644 --- a/app-sim/src/hello_world/hello_world.c +++ b/app-sim/src/hello_world/hello_world.c @@ -2,7 +2,7 @@ #include "services/loader/loader.h" #include "ui/toolbar.h" -static void app_show(TT_UNUSED App app, lv_obj_t* parent) { +static void app_show(App app, lv_obj_t* parent) { lv_obj_t* toolbar = tt_toolbar_create_for_app(parent, app); lv_obj_align(toolbar, LV_ALIGN_TOP_MID, 0, 0); diff --git a/app-sim/src/lvgl_task.c b/app-sim/src/lvgl_task.c index 1c63935e..68f9ebd2 100644 --- a/app-sim/src/lvgl_task.c +++ b/app-sim/src/lvgl_task.c @@ -19,7 +19,7 @@ static uint32_t task_max_sleep_ms = 10; static QueueHandle_t task_mutex = NULL; static bool task_running = false; -static void lvgl_task(TT_UNUSED void* arg); +static void lvgl_task(void* arg); static bool task_lock(int timeout_ticks) { assert(task_mutex != NULL); diff --git a/tactility/src/apps/desktop/desktop.c b/tactility/src/apps/desktop/desktop.c index b831f4a2..1c494779 100644 --- a/tactility/src/apps/desktop/desktop.c +++ b/tactility/src/apps/desktop/desktop.c @@ -20,7 +20,7 @@ static void create_app_widget(const AppManifest* manifest, void* parent) { lv_obj_add_event_cb(btn, &on_app_pressed, LV_EVENT_CLICKED, (void*)manifest); } -static void desktop_show(TT_UNUSED App app, TT_UNUSED lv_obj_t* parent) { +static void desktop_show(TT_UNUSED App app, lv_obj_t* parent) { lv_obj_t* list = lv_list_create(parent); lv_obj_set_size(list, LV_PCT(100), LV_PCT(100)); lv_obj_center(list); diff --git a/tactility/src/apps/screenshot/screenshot_ui.c b/tactility/src/apps/screenshot/screenshot_ui.c index 8dfe3dc3..f421ea2f 100644 --- a/tactility/src/apps/screenshot/screenshot_ui.c +++ b/tactility/src/apps/screenshot/screenshot_ui.c @@ -28,7 +28,7 @@ static void on_mode_set(lv_event_t* event) { update_mode(ui); } -static void on_start_pressed(TT_UNUSED lv_event_t* event) { +static void on_start_pressed(lv_event_t* event) { ScreenshotUi* ui = event->user_data; if (tt_screenshot_is_started()) { diff --git a/tactility/src/apps/settings/display/display.c b/tactility/src/apps/settings/display/display.c index e22f72ed..5c2f2897 100644 --- a/tactility/src/apps/settings/display/display.c +++ b/tactility/src/apps/settings/display/display.c @@ -66,7 +66,7 @@ static void on_orientation_set(lv_event_t* event) { } } -static void app_show(TT_UNUSED App app, lv_obj_t* parent) { +static void app_show(App app, lv_obj_t* parent) { lv_obj_set_flex_flow(parent, LV_FLEX_FLOW_COLUMN); tt_toolbar_create_for_app(parent, app); diff --git a/tactility/src/apps/settings/settings.c b/tactility/src/apps/settings/settings.c index 9c4d153e..bd2fd3ee 100644 --- a/tactility/src/apps/settings/settings.c +++ b/tactility/src/apps/settings/settings.c @@ -21,7 +21,7 @@ static void create_app_widget(const AppManifest* manifest, void* parent) { lv_obj_add_event_cb(btn, &on_app_pressed, LV_EVENT_CLICKED, (void*)manifest); } -static void on_show(TT_UNUSED App app, lv_obj_t* parent) { +static void on_show(App app, lv_obj_t* parent) { lv_obj_set_flex_flow(parent, LV_FLEX_FLOW_COLUMN); tt_toolbar_create_for_app(parent, app); diff --git a/tactility/src/apps/system/files/files.c b/tactility/src/apps/system/files/files.c index 009e4980..23a9c409 100644 --- a/tactility/src/apps/system/files/files.c +++ b/tactility/src/apps/system/files/files.c @@ -46,7 +46,7 @@ static bool is_image_file(const char* filename) { static void update_views(FilesData* data); -static void on_navigate_up_pressed(TT_UNUSED lv_event_t* event) { +static void on_navigate_up_pressed(lv_event_t* event) { FilesData* files_data = (FilesData*)event->user_data; if (strcmp(files_data->current_path, "/") != 0) { TT_LOG_I(TAG, "Navigating upwards"); diff --git a/tactility/src/services/sdcard/sdcard.c b/tactility/src/services/sdcard/sdcard.c index b1582ace..807a6f7a 100644 --- a/tactility/src/services/sdcard/sdcard.c +++ b/tactility/src/services/sdcard/sdcard.c @@ -9,7 +9,7 @@ #define TAG "sdcard_service" -static int32_t sdcard_task(TT_UNUSED void* context); +static int32_t sdcard_task(void* context); typedef struct { Mutex* mutex; diff --git a/tactility/src/tactility.c b/tactility/src/tactility.c index 2f73d012..6a4f18a6 100644 --- a/tactility/src/tactility.c +++ b/tactility/src/tactility.c @@ -93,7 +93,7 @@ static void register_and_start_user_services(const ServiceManifest* const servic } } -TT_UNUSED void tt_init(const Config* config) { +void tt_init(const Config* config) { TT_LOG_I(TAG, "tt_init started"); // Assign early so starting services can use it diff --git a/tactility/src/tactility.h b/tactility/src/tactility.h index 81ea139b..a66318bc 100644 --- a/tactility/src/tactility.h +++ b/tactility/src/tactility.h @@ -21,7 +21,7 @@ typedef struct { * Attempts to initialize Tactility and all configured hardware. * @param config */ -TT_UNUSED void tt_init(const Config* config); +void tt_init(const Config* config); /** * While technically nullable, this instance is always set if tt_init() succeeds.