init Files
This commit is contained in:
11
libraries/lvgl/scripts/filetohex.py
Executable file
11
libraries/lvgl/scripts/filetohex.py
Executable file
@@ -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 =", ")
|
||||
|
||||
Reference in New Issue
Block a user