Boot up screen

master
Felix Pankratz 2 years ago
commit d7bb716295

@ -0,0 +1,3 @@
# BPM Tapper
A BPM Tapper for the Flipper Zero.

@ -0,0 +1,11 @@
App(
appid="bpm_tapper",
name="BPM Tapper",
apptype=FlipperAppType.PLUGIN,
entry_point="bpm_tapper_app",
cdefines=["APP_BPM_TAPPER"],
requires=["gui"],
stack_size=1 * 1024,
icon="A_Plugins_14",
order=35,
)

35
bpm.c

@ -0,0 +1,35 @@
#include <furi.h>
#include <dialogs/dialogs.h>
#include <gui/gui.h>
typedef struct {
DialogsApp* dialogs;
int taps;
float interval;
int bpm;
} BPMTapper;
int32_t bpm_tapper_app(void* p) {
UNUSED(p);
BPMTapper* bpm = malloc(sizeof(BPMTapper));
bpm->dialogs = furi_record_open(RECORD_DIALOGS);
DialogMessage* message = dialog_message_alloc();
const char* header_text = "BPM Tapper";
const char* message_text = "Tap center to start";
dialog_message_set_header(message, header_text, 63, 3, AlignCenter, AlignTop);
dialog_message_set_text(message, message_text, 0, 17, AlignLeft, AlignTop);
dialog_message_set_buttons(message, NULL, "Tap", NULL);
dialog_message_set_icon(message, &I_DolphinCommon_56x48, 72, 17);
dialog_message_show(bpm->dialogs, message);
dialog_message_free(message);
furi_record_close(RECORD_DIALOGS);
free(bpm);
return 0;
}
Loading…
Cancel
Save