Re: Simple printer grahic

 BBS: Inland Empire Archive
Date: 03-19-93 (17:41)             Number: 144
From: VICTOR YIU                   Refer#: NONE
  To: ANGELO CAMPANELLA             Recvd: NO  
Subj: Re: Simple printer grahic      Conf: (2) Quik_Bas
 >>> Regurgitating Angelo Campanella to Victor Yiu <<<

Hi, Angelo!

 AC> I would appreciate a few lines of code to 'get my feet wet'.
 AC> My problem is that I have not the foggiest notion as to how to address
 AC> a parallel port to get information FROM it (vs sending info TO it as
 AC> in LPT1).  Any comments etc. will help.

Hmmm.... I have not tried the parallel port as an 'input' device...  But I
have made it be able to output raw bytes... like this:

FOR X = 0 TO 255
    OUT &H378, X            ' output byte to parallel port

    FOR ZZ = 1 TO 10: NEXT      ' dumb wait loop

"&H378" is the address for the parallel port.  I have successfully played
sound files on my LPT-DAC using an algorithm like the one above...

Good luck...


... Clap On (clap clap), Clap Off (clap clap) #%^$ NO CARRIER
--- Blue Wave/RA v2.12 [NR]
 * Origin: Hard Disc Cafe | Houston Texas | (713) 589-2690 |  (1:106/30.0)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET