[PARPORT] Tcl-question?

From: James Robert Adkins (james.adkins@multigig.com)
Date: Tue Feb 05 2002 - 07:26:16 EST

  • Next message: Tim Waugh: "Re: [PARPORT] Tcl-question?"

    Looking to design a board to load up values to a load of latches using a
    parallel port a FIFO and a schmitt trigger
    but I need to know how to put values to the individual pins on the
    I'm using Tcl and anything I have come accross has been in C using its
    Can Anyone get me started ?

    set testi [open /dev/lp0 w+]
    set max 0x37f
    for { set i 0x378 } { $i < $max } { incr i } {
        seek $testi $i

    set pos [tell $testi]
    puts $testi 1

    This is the kinda stuff I've been trying.. All I need to know is how to
    set the PAPER-FEED for example (AUTO_FD_XT)
    Im working with the printer untill my components turn up.


    **************************************************************** *James R Adkins * * * *MultiGiG Ltd *Phone: +44(0)1933 273733 * *Unit 1 *Fax: +44(0)1933 273795 * *Grange Farm, Wellingborough *Web: www.multigig.com * *Northants, UK, NN8 1RF *e-mail: james.adkins@multigig.com* ****************************************************************

    -- To unsubscribe, send mail to: linux-parport-request@torque.net -- -- with the single word "unsubscribe" in the body of the message. --

    This archive was generated by hypermail 2b29 : Tue Feb 05 2002 - 07:32:38 EST