2007-09-26から1日間の記事一覧
してみたけど、文字によって画面生成負荷がばらつくのと、文字ごとに移動になると早すぎて視認性が悪い。 ちょっと追記して、電光掲示板モードを作った。 def makelineimage(line): text=line img = Image.new("1", (750, 32), 1) draw = ImageDraw.Draw(img…
# coding: 'utf-8' import Image, ImageDraw, ImageFont import serial import time com = serial.Serial( port=11, baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=None, xonxoff=0, rtscts=0, writeTimeout=None, dsrdtr=None) com.timeou…
メッセージとシリアルポートは決めうちだけど、とりあえず任意の文字を任意のサイズで表示できるようになった。 # coding: 'utf-8' import Image, ImageDraw, ImageFont import serial com = serial.Serial( port=11, baudrate=115200, bytesize=8, parity='…
画面に表示する画像を作るのにPILを使うことにする。 落とす。 http://www.pythonware.com/products/pil/ http://effbot.org/downloads/PIL-1.1.6.win32-py2.5.exe 基本環境はpyserialを入れたのと同じ。 インストールはインストーラーがあるので楽。 IDLE起…
http://pydisplay.sourceforge.net/ あ、これです、これ。 これでいいのよ。 そのままは使えないだろうけど。 ちょっと見てみる価値はありそうね。
2.5のインストーラーを落とす。 http://www.python.jp/pub/ftp.python.org/python/2.5/python-2.5.msi msi形式なので、普通にインストールする。C\python25に入った。 んで、これはどうやって使うのかな? だいぶ前に使ったけど、すっかり忘却。 アプリケー…
http://opentechpress.jp/developer/07/09/25/0128205.shtml http://sourceforge.net/project/showfiles.php?group_id=16036 エラーだけを生成するように設計されたファイルシステム。 FUSE上で動作。
http://www.pickthebrain.com/blog/art-of-writing/ Cut the boring parts Eliminate unnecessary words Write with passion Paint a picture Keep it simple Do it for love Learn to thrive on criticism Write all the time Write what you know … or wha…