mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-12 20:28:36 -07:00
Temporarily backport app updates from apps repo
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
App(
|
||||
appid="gpio_timelapse",
|
||||
appid="timelapse",
|
||||
name="[GPIO] Timelapse",
|
||||
apptype=FlipperAppType.EXTERNAL,
|
||||
entry_point="zeitraffer_app",
|
||||
cdefines=["APP_ZEITRAFFER"],
|
||||
requires=["gui", "input", "notification", "gpio"],
|
||||
stack_size=2 * 1024,
|
||||
order=90,
|
||||
fap_version="1.1",
|
||||
fap_icon_assets="icons",
|
||||
fap_icon_assets_symbol="zeitraffer",
|
||||
fap_icon="zeitraffer.png",
|
||||
fap_category="GPIO",
|
||||
fap_version="1.1",
|
||||
fap_description="Simple intervalometer app, works via GPIO pins.",
|
||||
fap_description="Simple intervalometer/timelapse app",
|
||||
fap_author="Aurelius Rosenbaum",
|
||||
fap_weburl="https://github.com/theageoflove/flipperzero-zeitraffer",
|
||||
)
|
||||
|
||||
10
applications/external/timelapse/zeitraffer.c
vendored
10
applications/external/timelapse/zeitraffer.c
vendored
@@ -5,11 +5,11 @@
|
||||
#include <notification/notification_messages.h>
|
||||
#include <flipper_format/flipper_format.h>
|
||||
#include "gpio_item.h"
|
||||
#include "gpio_timelapse_icons.h"
|
||||
#include "zeitraffer_icons.h"
|
||||
|
||||
#include <assets_icons.h>
|
||||
|
||||
#define CONFIG_FILE_DIRECTORY_PATH "/ext/apps_data/timelapse"
|
||||
#define CONFIG_FILE_PATH CONFIG_FILE_DIRECTORY_PATH "/timelapse.conf"
|
||||
#define CONFIG_FILE_PATH APP_DATA_PATH("timelapse.conf")
|
||||
|
||||
// Часть кода покрадена из https://github.com/zmactep/flipperzero-hello-world
|
||||
|
||||
@@ -154,10 +154,6 @@ int32_t zeitraffer_app(void* p) {
|
||||
FlipperFormat* load = flipper_format_file_alloc(storage);
|
||||
|
||||
do {
|
||||
if(!storage_simply_mkdir(storage, CONFIG_FILE_DIRECTORY_PATH)) {
|
||||
notification_message(notifications, &sequence_error);
|
||||
break;
|
||||
}
|
||||
if(!flipper_format_file_open_existing(load, CONFIG_FILE_PATH)) {
|
||||
notification_message(notifications, &sequence_error);
|
||||
break;
|
||||
|
||||
BIN
applications/external/timelapse/zeitraffer.png
vendored
BIN
applications/external/timelapse/zeitraffer.png
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 199 B After Width: | Height: | Size: 1.4 KiB |
Reference in New Issue
Block a user