This example demonstrates how to build an application for the device. An
application is standalone code that runs on the hardware without intervention
from a host computer. This example application blinks an LED that is attached
to IO_1
.
Install libflipper.
make libflipper
Build the application
make
If using FVM open a seperate terminal window and run.
fvm
If working with FVM be sure to replace the following line inside your code.
flipper_attach();
with
struct _lf_device *fvm = flipper_attach_network("localhost");
make install
By running make install
the application will be loaded onto the attached
device and start executing immediately. If there is an LED attached to IO_1
, it will begin to blink.
If working with FVM, observe FVM print out
led_rgb(x, y, z)