Skip to content

Instantly share code, notes, and snippets.

@joserebelo
joserebelo / mi2font.py
Last active December 26, 2018 22:07
Mi Band 2 - Font pack / unpack
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Simple python command line tool to pack / unpack the Mi Band 2 font firmware files
from PIL import Image
import os
import math
import binascii
import sys