mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-21 05:04:46 -07:00
GPIO fap it up fap it up
This commit is contained in:
@@ -4,7 +4,8 @@ App(
|
|||||||
apptype=FlipperAppType.METAPACKAGE,
|
apptype=FlipperAppType.METAPACKAGE,
|
||||||
provides=[
|
provides=[
|
||||||
"clock_loader",
|
"clock_loader",
|
||||||
"gpio",
|
# "gpio",
|
||||||
|
"gpio_loader",
|
||||||
# "ibutton",
|
# "ibutton",
|
||||||
"ibutton_loader",
|
"ibutton_loader",
|
||||||
# "infrared",
|
# "infrared",
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
App(
|
App(
|
||||||
appid="gpio",
|
appid="gpio",
|
||||||
name="GPIO",
|
name="GPIO",
|
||||||
apptype=FlipperAppType.APP,
|
apptype=FlipperAppType.EXTERNAL,
|
||||||
entry_point="gpio_app",
|
entry_point="gpio_app",
|
||||||
cdefines=["APP_GPIO"],
|
cdefines=["APP_GPIO"],
|
||||||
requires=["gui"],
|
requires=["gui"],
|
||||||
stack_size=1 * 1024,
|
stack_size=1 * 1024,
|
||||||
icon="A_GPIO_14",
|
# icon="A_GPIO_14",
|
||||||
order=50,
|
order=50,
|
||||||
# fap_icon="gpioIcon.png",
|
fap_icon="gpioIcon.png",
|
||||||
# fap_category="Main",
|
fap_category="Main",
|
||||||
|
fap_icon_assets="images",
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
#include "views/gpio_usb_uart.h"
|
#include "views/gpio_usb_uart.h"
|
||||||
#include "views/gpio_i2c_scanner.h"
|
#include "views/gpio_i2c_scanner.h"
|
||||||
#include "views/gpio_i2c_sfp.h"
|
#include "views/gpio_i2c_sfp.h"
|
||||||
#include <assets_icons.h>
|
#include <gpio_icons.h>
|
||||||
|
|
||||||
struct GpioApp {
|
struct GpioApp {
|
||||||
Gui* gui;
|
Gui* gui;
|
||||||
|
|||||||
BIN
applications/main/gpio/images/ActiveConnection_50x64.png
Normal file
BIN
applications/main/gpio/images/ActiveConnection_50x64.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
BIN
applications/main/gpio/images/ArrowDownEmpty_14x15.png
Normal file
BIN
applications/main/gpio/images/ArrowDownEmpty_14x15.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 654 B |
BIN
applications/main/gpio/images/ArrowDownFilled_14x15.png
Normal file
BIN
applications/main/gpio/images/ArrowDownFilled_14x15.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 669 B |
BIN
applications/main/gpio/images/ArrowUpEmpty_14x15.png
Normal file
BIN
applications/main/gpio/images/ArrowUpEmpty_14x15.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
BIN
applications/main/gpio/images/ArrowUpFilled_14x15.png
Normal file
BIN
applications/main/gpio/images/ArrowUpFilled_14x15.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
14
applications/main/gpio_loader/application.fam
Normal file
14
applications/main/gpio_loader/application.fam
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
App(
|
||||||
|
appid="gpio_loader",
|
||||||
|
name="GPIO",
|
||||||
|
apptype=FlipperAppType.APP,
|
||||||
|
entry_point="gpio_loader_app",
|
||||||
|
requires=[
|
||||||
|
"gui",
|
||||||
|
"storage",
|
||||||
|
],
|
||||||
|
stack_size=int(1.5 * 1024),
|
||||||
|
icon="A_GPIO_14",
|
||||||
|
order=50,
|
||||||
|
link="/ext/apps/Main/gpio.fap",
|
||||||
|
)
|
||||||
9
applications/main/gpio_loader/gpio_loader_app.c
Normal file
9
applications/main/gpio_loader/gpio_loader_app.c
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#include <applications/services/loader/loader_i.h>
|
||||||
|
|
||||||
|
#define TAG "gpio_loader_app"
|
||||||
|
|
||||||
|
int32_t gpio_loader_app(void* p) {
|
||||||
|
UNUSED(p);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user