Skip to content

Instantly share code, notes, and snippets.

View teddokano's full-sized avatar

Tedd OKANO teddokano

View GitHub Profile
#!/usr/bin/env python
#encoding=utf-8
# This script creates copy from mbed public user repository
# You must install Mercurial package (pip install mercurial)
#
# Usage: python clone_mbed_user_repo.py <mbed_user_name> <password> <sessionid_developer of coockei>
# e.g. $ python clone_mbed_user_repo.py MACRUM password kjdt3hu1loppvyyxq60nhokssa1k48ul
#
# <sessionid_developer> can be found from developer tool of the web brawser
#!/usr/bin/env python
#encoding=utf-8
# Convert image to Pwmout grayscale data for dot-matrix LED
# Input image format can be JPEG, PNG etc
from PIL import Image
import sys
if __name__ == "__main__":