Skip to content

Instantly share code, notes, and snippets.

View teddokano's full-sized avatar

Tedd OKANO teddokano

View GitHub Profile
@toyowata
toyowata / img2pwmout.py
Last active August 29, 2015 14:12
Convert image file to grayscale array data - 画像ファイルをグレースケール配列に変換する
#!/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__":