Skip to content

Commit

Permalink
Merge pull request #398 from RogueMaster/MoreFAPs
Browse files Browse the repository at this point in the history
Infrared AS FAP
  • Loading branch information
RogueMaster committed Nov 4, 2022
2 parents a79b38e + 9af1c86 commit 8fa7256
Show file tree
Hide file tree
Showing 46 changed files with 45 additions and 9 deletions.
Binary file removed RM11031820-0.70.2-78e1e00.tgz
Binary file not shown.
Binary file removed RM11031820-0.70.2-78e1e00.zip
Binary file not shown.
6 changes: 4 additions & 2 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
- Updated: [IFTTT Virtual Button (By Ferrazzi)](https://github.com/Ferrazzi/FlipperZero_IFTTT_Virtual_Button) `Req: ESP8266 w/ IFTTT FW Flashed`
- Fixes for slower animations to be MUCH faster
- [BadUSB: BadUSB as FAP #396 (By ESurge)](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/pull/396)
- [RFID: LFRFID AS FAP #397 (By ROgueMaster)](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/pull/397) (With Thanks to ESurge)
- [RFID: LFRFID AS FAP #397 (By RogueMaster)](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/pull/397) (With Thanks to @ESurge)
- [Infrared: Infrared AS FAP #398 (By RogueMaster)](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/pull/398) (With Thanks to @ESurge)

<details>
<summary><B>TO DO / REMOVED</b></summary><br/>
Expand Down Expand Up @@ -137,7 +138,8 @@ $ ./fbt plugin_dist
- iButton: [Fixed issue when loading iButton keys or U2F token from Archive app #382 (By ESurge)](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/pull/382)
- iButton: iButton.fap loader apps and available as Favorites [Thanks to ESurge](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/pull/336)
- Icon Decode/Encode [(Thanks to PixlEmly)](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/pull/55/files)
- IR: Universal AC, Audio, Fans & Projectors from [Unleashed/Eng1n33r](https://github.com/DarkFlippers/unleashed-firmware)
- [Infrared: Infrared AS FAP #398 (By RogueMaster)](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/pull/398) (With Thanks to @ESurge)
- Infrared: Universal AC, Audio, Fans & Projectors from [Unleashed/Eng1n33r](https://github.com/DarkFlippers/unleashed-firmware)
- Plugins: 2048, Arkanoid, Snake, and Tetris show score. Thanks to [whoamins](https://github.com/flipperdevices/flipperzero-firmware/commit/7feda832ede1ba8468eff2ca055fef3ddbdc16ac) and [DevMilanIan](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/pull/188) With position changes by RogueMaster. Also all + Tic Tac Toe updated by [Unleashed/Eng1n33r](https://github.com/DarkFlippers/unleashed-firmware) for stability.
- Plugins: Icon for Clock [Thanks to Redlink](https://github.com/redlink2/flipperzero-firmware/tree/menuChanges)
- [RFID: LFRFID AS FAP #397 (By ROgueMaster)](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/pull/397) (With Thanks to ESurge)
Expand Down
3 changes: 2 additions & 1 deletion applications/main/application.fam
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ App(
"gpio",
# "ibutton",
"ibutton_loader",
"infrared",
# "infrared",
"infrared_loader",
# "lfrfid",
"lfrfid_loader",
"nfc",
Expand Down
8 changes: 8 additions & 0 deletions applications/main/archive/scenes/archive_scene_browser.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ static void archive_run_in_app(ArchiveBrowserView* browser, ArchiveFile_t* selec
char* result =
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);
strcat(result, furi_string_get_cstr(selected->path));
status = loader_start(loader, "Applications", result);
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes.
9 changes: 5 additions & 4 deletions applications/main/infrared/application.fam
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
App(
appid="infrared",
name="Infrared",
apptype=FlipperAppType.APP,
apptype=FlipperAppType.EXTERNAL,
entry_point="infrared_app",
cdefines=["APP_INFRARED"],
requires=[
"gui",
"dialogs",
],
provides=["infrared_start"],
icon="A_Infrared_14",
# icon="A_Infrared_14",
stack_size=3 * 1024,
order=40,
# fap_icon="irIcon.png",
# fap_category="Main",
fap_category="Main",
fap_icon="ir_10px.png",
fap_icon_assets="images",
)

App(
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added applications/main/infrared/images/Down_25x27.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added applications/main/infrared/images/Mode_25x27.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added applications/main/infrared/images/Mute_25x27.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added applications/main/infrared/images/Power_25x27.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added applications/main/infrared/images/Rotate_25x27.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added applications/main/infrared/images/Swing_25x27.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added applications/main/infrared/images/Timer_25x27.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added applications/main/infrared/images/Up_25x27.png
Binary file added applications/main/infrared/images/ir_10px.png
3 changes: 2 additions & 1 deletion applications/main/infrared/infrared_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include <gui/gui.h>
#include <gui/view.h>
#include <assets_icons.h>
#include <gui/view_stack.h>
#include <gui/view_dispatcher.h>
#include <gui/scene_manager.h>
Expand Down Expand Up @@ -33,6 +32,8 @@

#include "rpc/rpc_app.h"

#include <infrared_icons.h>

#define INFRARED_FILE_NAME_SIZE 100
#define INFRARED_TEXT_STORE_NUM 2
#define INFRARED_TEXT_STORE_SIZE 128
Expand Down
Binary file removed applications/main/infrared/irIcon.png
Diff not rendered.
Binary file added applications/main/infrared/ir_10px.png
2 changes: 1 addition & 1 deletion applications/main/infrared/views/infrared_progress_view.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <core/check.h>
#include "furi_hal_resources.h"
#include "assets_icons.h"
#include "gui/canvas.h"
#include "gui/view.h"
#include "input/input.h"
Expand All @@ -9,6 +8,7 @@
#include "infrared_progress_view.h"
#include "gui/modules/button_panel.h"
#include <stdint.h>
#include <infrared_icons.h>

struct InfraredProgressView {
View* view;
Expand Down
14 changes: 14 additions & 0 deletions applications/main/infrared_loader/application.fam
Original file line number Diff line number Diff line change
@@ -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 changes: 9 additions & 0 deletions applications/main/infrared_loader/infrared_loader_app.c
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 8fa7256

Please sign in to comment.