User:Chrissy/projects/dot matrix printing

From XPUB & Lens-Based wiki
< User:Chrissy‎ | projects
Revision as of 13:41, 21 March 2025 by Chrissy (talk | contribs)

some dot matrix experiments during special issue 26 class & afterwards (with lots of desperation)

We were working with the Star-SG-10, me already the second time & I couldn't get the DIP switches in the STAR & IBM Mode to work. At least we were able to set the DIP switches to the "International" character sets. In the first place I tried hard to get ASCII to print, but somehow neither the STAR nor IBM Mode let me…

Later one in the group we manages to print different font sizes high and low text as well. & even single ASCII characters!1!! But still no ASCII Images.

images

note

python script

import os

textfile = open("output2.txt", "w")



# for num in range (0,256):
   
character = chr(178) + chr(182) + chr(219)
    # character = chr(num)
print (character, end="", flush=True)

    textfile.write(character)
    
textfile.close()
os.system("lpr output.txt -o raw")

#   print (character, end="", flush=True)

## terminal seeing ascii table: ascii -d
# character = chr(59) + chr(89)
# print(character)
## run: python3 matrix.py


# terminal seeing ascii table: ascii -d
character = chr(178) + chr(182)
print(character)
# run: python3 matrix.py

started to translate this ASCII Image into code, but even the start didn't work :(

        _   / /|
       |\\  \/_/
       \_\| / __              
          \/_/__\           .-=='/~\
   ____,__/__,_____,______)/   /{~}}}
   -,------,----,-----,---,\'-' {{~}}
                            '-==.\}/

ascii = chr(32) + chr(32) + chr(32) + chr(32) + chr(32) + chr(32) + chr(32) + chr(32) + chr(95) + chr(32) + chr(32) + chr(32) + chr(47) + chr(32) + chr(47) + chr(179) + chr(CR) + chr(32) + chr(32) + chr(32) + chr(32) + chr(32) + chr(32) + chr(32) + chr(179)