Skip to content

Commit

Permalink
Merge pull request RogueMaster#5 from djsime1/unleashed
Browse files Browse the repository at this point in the history
Merge spectrum analyzer
  • Loading branch information
Eng1n33r authored May 10, 2022
2 parents 16db5b1 + 40b0efc commit 6573b67
Show file tree
Hide file tree
Showing 6 changed files with 769 additions and 0 deletions.
9 changes: 9 additions & 0 deletions applications/applications.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ extern int32_t text_box_test_app(void* p);
extern int32_t music_player_app(void* p);
extern int32_t snake_game_app(void* p);
extern int32_t tetris_game_app(void *p);
extern int32_t spectrum_analyzer_app(void* p);

// On system start hooks declaration
extern void bt_on_system_start();
Expand Down Expand Up @@ -357,6 +358,14 @@ const FlipperApplication FLIPPER_PLUGINS[] = {
.stack_size = 1024,
.icon = NULL},
#endif

#ifdef APP_SPECTRUM_ANALYZER
{.app = spectrum_analyzer_app,
.name = "Spectrum Analyzer",
.stack_size = 1024,
.icon = &A_Plugins_14,
.flags = FlipperApplicationFlagDefault},
#endif
};

const size_t FLIPPER_PLUGINS_COUNT = COUNT_OF(FLIPPER_PLUGINS);
Expand Down
7 changes: 7 additions & 0 deletions applications/applications.mk
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ APP_UPDATER = 1
APP_MUSIC_PLAYER = 1
APP_SNAKE_GAME = 1
APP_TETRIS_GAME = 1
APP_SPECTRUM_ANALYZER = 1

# Debug
APP_ACCESSOR = 1
Expand Down Expand Up @@ -241,6 +242,12 @@ CFLAGS += -DAPP_TETRIS_GAME
SRV_GUI = 1
endif

APP_SPECTRUM_ANALYZER ?= 0
ifeq ($(APP_SPECTRUM_ANALYZER), 1)
CFLAGS += -DAPP_SPECTRUM_ANALYZER
SRV_GUI = 1
endif

APP_IBUTTON ?= 0
ifeq ($(APP_IBUTTON), 1)
CFLAGS += -DAPP_IBUTTON
Expand Down
Loading

0 comments on commit 6573b67

Please sign in to comment.