1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 12:42:30 +04:00

barcode gen, embed files

This commit is contained in:
MX
2023-07-20 00:13:49 +03:00
parent 9fa3375b0a
commit 92b280291d
6 changed files with 6 additions and 9 deletions

View File

@@ -8,9 +8,9 @@ App(
fap_category="Tools", fap_category="Tools",
fap_icon="images/barcode_10.png", fap_icon="images/barcode_10.png",
fap_icon_assets="images", fap_icon_assets="images",
fap_icon_assets_symbol="barcode_app", fap_file_assets="barcode_encoding_files",
fap_author="@Kingal1337", fap_author="@Kingal1337",
fap_weburl="https://github.com/Kingal1337/flipper-barcode-generator", fap_weburl="https://github.com/Kingal1337/flipper-barcode-generator",
fap_version="1.0", fap_version="1.1",
fap_description="App allows you to display various barcodes on flipper screen", fap_description="App allows you to display various barcodes on flipper screen",
) )

View File

@@ -23,20 +23,17 @@
#define BARCODE_HEIGHT 50 #define BARCODE_HEIGHT 50
#define BARCODE_Y_START 3 #define BARCODE_Y_START 3
//the folder where the encodings are located
#define BARCODE_DATA_FILE_DIR_PATH EXT_PATH("apps_data/barcode_data")
//the folder where the codabar encoding table is located //the folder where the codabar encoding table is located
#define CODABAR_DICT_FILE_PATH BARCODE_DATA_FILE_DIR_PATH "/codabar_encodings.txt" #define CODABAR_DICT_FILE_PATH APP_ASSETS_PATH("codabar_encodings.txt")
//the folder where the code 39 encoding table is located //the folder where the code 39 encoding table is located
#define CODE39_DICT_FILE_PATH BARCODE_DATA_FILE_DIR_PATH "/code39_encodings.txt" #define CODE39_DICT_FILE_PATH APP_ASSETS_PATH("code39_encodings.txt")
//the folder where the code 128 encoding table is located //the folder where the code 128 encoding table is located
#define CODE128_DICT_FILE_PATH BARCODE_DATA_FILE_DIR_PATH "/code128_encodings.txt" #define CODE128_DICT_FILE_PATH APP_ASSETS_PATH("code128_encodings.txt")
//the folder where the code 128 C encoding table is located //the folder where the code 128 C encoding table is located
#define CODE128C_DICT_FILE_PATH BARCODE_DATA_FILE_DIR_PATH "/code128c_encodings.txt" #define CODE128C_DICT_FILE_PATH APP_ASSETS_PATH("code128c_encodings.txt")
//the folder where the user stores their barcodes //the folder where the user stores their barcodes
#define DEFAULT_USER_BARCODES EXT_PATH("apps_data/barcodes") #define DEFAULT_USER_BARCODES EXT_PATH("apps_data/barcodes")