Brad Fitzpatrick (brad) wrote,
Brad Fitzpatrick
brad

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.
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments