first commit
This commit is contained in:
commit
e6a42e28e9
4355 changed files with 4626605 additions and 0 deletions
11
libraries/lvgl/scripts/filetohex.py
Normal file
11
libraries/lvgl/scripts/filetohex.py
Normal 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 =", ")
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue