SAE Teensy ECU
IIT SAE Microcontroller programming
|
Convert file string to zlib compressed C array. More...
Go to the source code of this file.
Functions | |
str | bin2cc.bin2cc (bytes data, str var_name) |
Generate a C char array from bytes Args: data (bytes): The bytes var_name (str): The C variable name. | |
bin2cc.main () | |
Main Function. | |
Variables | |
int | bin2cc.LINE_LEN = 8 |
Convert file string to zlib compressed C array.
https://nachtimwald.com/2019/10/09/python-binary-to-c-header/
Definition in file bin2cc.py.
str bin2cc.bin2cc | ( | bytes | data, |
str | var_name | ||
) |