infrared FAP test
@@ -79,6 +79,14 @@ static void archive_run_in_app(ArchiveBrowserView* browser, ArchiveFile_t* selec
|
|||||||
char* result =
|
char* result =
|
||||||
malloc(strlen(tmpType) + strlen(furi_string_get_cstr(selected->path)) + 1);
|
malloc(strlen(tmpType) + strlen(furi_string_get_cstr(selected->path)) + 1);
|
||||||
|
|
||||||
|
strcpy(result, tmpType);
|
||||||
|
strcat(result, furi_string_get_cstr(selected->path));
|
||||||
|
status = loader_start(loader, "Applications", result);
|
||||||
|
} else if(strcmp(flipper_app_name[selected->type], "Infrared") == 0) {
|
||||||
|
char* tmpType = "/ext/apps/Main/infrared.fap¯";
|
||||||
|
char* result =
|
||||||
|
malloc(strlen(tmpType) + strlen(furi_string_get_cstr(selected->path)) + 1);
|
||||||
|
|
||||||
strcpy(result, tmpType);
|
strcpy(result, tmpType);
|
||||||
strcat(result, furi_string_get_cstr(selected->path));
|
strcat(result, furi_string_get_cstr(selected->path));
|
||||||
status = loader_start(loader, "Applications", result);
|
status = loader_start(loader, "Applications", result);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
App(
|
App(
|
||||||
appid="infrared",
|
appid="infrared",
|
||||||
name="Infrared",
|
name="Infrared",
|
||||||
apptype=FlipperAppType.APP,
|
apptype=FlipperAppType.EXTERNAL,
|
||||||
entry_point="infrared_app",
|
entry_point="infrared_app",
|
||||||
cdefines=["APP_INFRARED"],
|
cdefines=["APP_INFRARED"],
|
||||||
requires=[
|
requires=[
|
||||||
@@ -9,11 +9,12 @@ App(
|
|||||||
"dialogs",
|
"dialogs",
|
||||||
],
|
],
|
||||||
provides=["infrared_start"],
|
provides=["infrared_start"],
|
||||||
icon="A_Infrared_14",
|
# icon="A_Infrared_14",
|
||||||
stack_size=3 * 1024,
|
stack_size=3 * 1024,
|
||||||
order=40,
|
order=40,
|
||||||
# fap_icon="irIcon.png",
|
fap_category="Main",
|
||||||
# fap_category="Main",
|
fap_icon="ir_10px.png",
|
||||||
|
fap_icon_assets="images",
|
||||||
)
|
)
|
||||||
|
|
||||||
App(
|
App(
|
||||||
|
|||||||
BIN
applications/main/infrared/images/DolphinMafia_115x62.png
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
applications/main/infrared/images/DolphinNice_96x59.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
BIN
applications/main/infrared/images/Down_25x27.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
applications/main/infrared/images/Down_hvr_25x27.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
applications/main/infrared/images/InfraredArrowDown_4x8.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
applications/main/infrared/images/InfraredArrowUp_4x8.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
applications/main/infrared/images/InfraredLearnShort_128x31.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
applications/main/infrared/images/Mode_25x27.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
applications/main/infrared/images/Mode_hvr_25x27.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
applications/main/infrared/images/Mute_25x27.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
applications/main/infrared/images/Mute_hvr_25x27.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
applications/main/infrared/images/Pin_back_arrow_10x8.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
applications/main/infrared/images/Power_25x27.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
applications/main/infrared/images/Power_hvr_25x27.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
applications/main/infrared/images/RFIDDolphinSend_97x61.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
applications/main/infrared/images/Rotate_25x27.png
Normal file
|
After Width: | Height: | Size: 250 B |
BIN
applications/main/infrared/images/Rotate_hvr_25x27.png
Normal file
|
After Width: | Height: | Size: 237 B |
BIN
applications/main/infrared/images/SDQuestion_35x43.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
applications/main/infrared/images/Swing_25x27.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
applications/main/infrared/images/Swing_hvr_25x27.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
applications/main/infrared/images/Timer_25x27.png
Normal file
|
After Width: | Height: | Size: 313 B |
BIN
applications/main/infrared/images/Timer_hvr_25x27.png
Normal file
|
After Width: | Height: | Size: 306 B |
BIN
applications/main/infrared/images/Up_25x27.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
applications/main/infrared/images/Up_hvr_25x27.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
applications/main/infrared/images/Vol_down_25x27.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
applications/main/infrared/images/Vol_down_hvr_25x27.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
applications/main/infrared/images/Vol_up_25x27.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
applications/main/infrared/images/Vol_up_hvr_25x27.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
applications/main/infrared/images/ir_10px.png
Normal file
|
After Width: | Height: | Size: 305 B |
|
Before Width: | Height: | Size: 1.9 KiB |
BIN
applications/main/infrared/ir_10px.png
Normal file
|
After Width: | Height: | Size: 305 B |
14
applications/main/infrared_loader/application.fam
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
App(
|
||||||
|
appid="infrared_loader",
|
||||||
|
name="Infrared",
|
||||||
|
apptype=FlipperAppType.APP,
|
||||||
|
entry_point="infrared_loader_app",
|
||||||
|
requires=[
|
||||||
|
"gui",
|
||||||
|
"dialogs",
|
||||||
|
],
|
||||||
|
stack_size=int(2 * 1024),
|
||||||
|
icon="A_Infrared_14",
|
||||||
|
order=80,
|
||||||
|
link="/ext/apps/Main/infrared.fap",
|
||||||
|
)
|
||||||
9
applications/main/infrared_loader/infrared_loader_app.c
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#include <applications/services/loader/loader_i.h>
|
||||||
|
|
||||||
|
#define TAG "infrared_loader_app"
|
||||||
|
|
||||||
|
int32_t infrared_loader_app(void* p) {
|
||||||
|
UNUSED(p);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||