mirror of
https://github.com/No-Chicken/Power-Pico.git
synced 2026-04-03 13:02:36 +08:00
update lvgl simulator on ubuntu
This commit is contained in:
11
lv_sim_linux/lvgl/scripts/filetohex.py
Executable file
11
lv_sim_linux/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