mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2025-12-12 12:51:22 +04:00
* Examples: remove unused context * FuriHal: add simple ADC API * Examples: add ADC example app * FuriHal: add extended configuration options for ADC API * FuriHal: add ADC clock configuration, fix calibration routine for single ended mode, new optimized parameters, documentation. * FuriHal: add FuriHalAdcChannelTEMPSENSOR sampling time note * FuriHal: update FuriHalAdcChannelVBAT description. * FuriHal: use insomnia while ADC is acquired. * Examples: cleanup example_adc a little bit
Application icons
Source code
Source code for this example can be found here.
General principle
To use icons, do the following:
- Add a line to the application manifest:
fap_icon_assets="folder", wherefolderpoints to the folder where your icons are located - Add
#include "application_id_icons.h"to the application code, whereapplication_idis the appid from the manifest - Every icon in the folder will be available as a
I_icon_namevariable, whereicon_nameis the name of the icon file without the extension
Example
We have an application with the following manifest:
App(
appid="example_images",
...
fap_icon_assets="images",
)
So the icons are in the images folder and will be available in the generated example_images_icons.h file.
The example code is located in example_images_main.c and contains the following line:
#include "example_images_icons.h"
Image dolphin_71x25.png is available as I_dolphin_71x25.