mirror of
https://github.com/romychs/OK240.2-Firmware.git
synced 2026-12-04 03:37:17 +03:00
Monitor r7 crc32: 58d6d2a8 dizasm completed
This commit is contained in:
1 parent
97ca74577a
commit
36d4022af1
36 files changed
+6031
-1
No files matched your search
Binary file not shown.
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/bin/python3
|
||||
|
||||
row = 32
|
||||
col = 0
|
||||
width = 7
|
||||
|
||||
with open('font.bin', 'rb') as f:
|
||||
data = f.read()
|
||||
for b in data:
|
||||
print("0x{:02x}".format(b), end='')
|
||||
if col < (width-1):
|
||||
print(", ", end='')
|
||||
col = col + 1
|
||||
if col == width:
|
||||
col = 0
|
||||
if row < 127:
|
||||
print(" ; '{}'".format(chr(row)))
|
||||
else:
|
||||
print(" ; xx")
|
||||
row = row + 1
|
||||
Reference in new issue
Block a user