using us_ prefixes

This commit is contained in:
Maxim Devaev
2022-07-19 11:02:36 +03:00
parent e3293d6887
commit cbee3adb2e
90 changed files with 2297 additions and 2338 deletions

View File

@@ -82,10 +82,10 @@ def main() -> None:
text = f"{common.C_PREPEND}\n"
text += f"#include \"{h_path}\"\n\n\n"
text += f"const unsigned {name}_JPEG_WIDTH = {width};\n"
text += f"const unsigned {name}_JPEG_HEIGHT = {height};\n\n"
text += f"const size_t {name}_JPEG_DATA_SIZE = {len(jpeg_data)};\n"
text += f"const uint8_t {name}_JPEG_DATA[] = {jpeg_data_text};\n"
text += f"const unsigned US_{name}_JPEG_WIDTH = {width};\n"
text += f"const unsigned US_{name}_JPEG_HEIGHT = {height};\n\n"
text += f"const size_t US_{name}_JPEG_DATA_SIZE = {len(jpeg_data)};\n"
text += f"const uint8_t US_{name}_JPEG_DATA[] = {jpeg_data_text};\n"
with open(c_path, "w") as c_file:
c_file.write(text)