From dd27c3530432ea0b09f01e604bf577f31d8ef841 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 1 Jun 2023 15:41:47 +1000 Subject: convert lvgl from submodule to a plain old directory --- lib/lvgl | 1 - lib/lvgl/scripts/filetohex.py | 11 +++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) delete mode 160000 lib/lvgl create mode 100755 lib/lvgl/scripts/filetohex.py (limited to 'lib/lvgl/scripts/filetohex.py') diff --git a/lib/lvgl b/lib/lvgl deleted file mode 160000 index 0732400e..00000000 --- a/lib/lvgl +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0732400e7b564dd0e7dc4a924619d8e19c5b23a0 diff --git a/lib/lvgl/scripts/filetohex.py b/lib/lvgl/scripts/filetohex.py new file mode 100755 index 00000000..73ad5a97 --- /dev/null +++ b/lib/lvgl/scripts/filetohex.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python3 +import sys + +with open(sys.argv[1], 'r') as file: + s = file.read() + +b = bytearray() +b.extend(map(ord, s)) + +for a in b: print(hex(a), end =", ") + -- cgit v1.2.3