November 27th, 2003

belize

more progress

Gutted libparapin and got to the meat: Linux' bout() function, also available to userspace.

Now my program's fast enough, driving the parallel port at 65,000 500,000+ bytes per second... only using data 2 bits (data and clock), and it takes 2 cycles (bytes) to turn the light both on and off, so I can turn a lamp on now at 16 ~130 kHz....

Varying the work cycle, I can now dim the lamp to whatever. I have a program that makes the light twinkle, oscillating in brightness between hi and lo.... but every brightness level from 1-10 is really 10,000 bytes out. Very fun.

Anyway, off to eat 3 times today at 3 different places. Even more fun.