Advanced Mp3 Player


+ Pop-Up Player

Premium beat player

Make sure you have at least Flash Player 7. If not,please download.
LED Parallel Port Control PDF Print E-mail
Written by Administrator   
Friday, 20 February 2009 11:08
 
p = open('/dev/port', 'w')   # open /dev/port in write mode
p.sync = true       # turn buffering off, write to the
        # port as soon as it is requested
p.seek(0x378, IO::SEEK_SET)  # move writing cursor to the parallel
        # port address
p.putc(0b1)      # write 00000001 to it and activate
        # whatever on your I/O board is 
        # attached to the D0 pin
p.seek(0x378, IO::SEEK_SET)  # back again to the port
p.putc(0b0)      # write 00000000 and unset the D0 pin
 
Last Updated on Friday, 20 February 2009 11:23