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…

LCDモジュールに文字を出す

メッセージとシリアルポートは決めうちだけど、とりあえず任意の文字を任意のサイズで表示できるようになった。 # coding: 'utf-8' import Image, ImageDraw, ImageFont import serial com = serial.Serial( port=11, baudrate=115200, bytesize=8, parity='…

WindowsでPILを使う

画面に表示する画像を作るのにPILを使うことにする。 落とす。 http://www.pythonware.com/products/pil/ http://effbot.org/downloads/PIL-1.1.6.win32-py2.5.exe 基本環境はpyserialを入れたのと同じ。 インストールはインストーラーがあるので楽。 IDLE起…

pydisplay

http://pydisplay.sourceforge.net/ あ、これです、これ。 これでいいのよ。 そのままは使えないだろうけど。 ちょっと見てみる価値はありそうね。

Windowsでpyserial

2.5のインストーラーを落とす。 http://www.python.jp/pub/ftp.python.org/python/2.5/python-2.5.msi msi形式なので、普通にインストールする。C\python25に入った。 んで、これはどうやって使うのかな? だいぶ前に使ったけど、すっかり忘却。 アプリケー…

petardfs

http://opentechpress.jp/developer/07/09/25/0128205.shtml http://sourceforge.net/project/showfiles.php?group_id=16036 エラーだけを生成するように設計されたファイルシステム。 FUSE上で動作。

The Art of Writing: 10 Tips from the Masters

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…