Skip to content

Commit

Permalink
Update to scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
PixlEmly committed Jun 16, 2022
1 parent 3380410 commit 9867e00
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion scripts/User/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,21 @@ That's it.
# iconencode
Compress an icon asset from an XBM to a compressed char array ready to paste
Will assume dimensions of 128x64
There is a small header on these I haven't determined the format of, so this won't work as is yet.
Header works like this, you'll have to do this manually for now!

Image Header Format Example
0x01 = Compressed
0x00 = Reserved Section
0xa4,0x01 = 0x1a4, or, 420 - the size of the compressed array, minus this header. Just count the commas ;)
Rest of the data is char array output from heatshrink of the original XBM char array.
Calculated Header: 0x01,0x00,0xa4,0x01
from furi_hal_compress.c:
typedef struct {
uint8_t is_compressed;
uint8_t reserved;
uint16_t compressed_buff_size;
} FuriHalCompressHeader;


##
# icondecode
Expand Down

0 comments on commit 9867e00

Please sign in to comment.