You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although this is overkill (handles more colours than the Mi Band 4 can use apparently!) it should be future proof to a certain degree, and there's probably a more elegant way to do it!
This code does the same thing, but it's more compact.
char_r=len(PLTE_chunk)
PLTE_len = ''
for p in range(3,-1,-1):
char_d, char_r = divmod(char_r, 256**p)
PLTE_len = PLTE_len + chr(char_d)
But in any case, when I try to unpack a Mi Band 4 bin file, it determines the number of resources, throws a 0 version and a negative resoffset, and finally tells me for all resources ERROR: 83 isn't a bitmap resource
Is it possible for dial2img.py to be modified to work with Mi Band 4 .bin file?
The text was updated successfully, but these errors were encountered: