Skip to content

Conversation

@goldnchild
Copy link
Contributor

…rinter

bitmap_printer: add calccrpos for intermediate stepper position, add set_screen_update function

This fixes the clocking in of data to the pcw printer, as previously it was looking for just the clock being high, and not looking for the transition to high. So multiple writes to the printer with the clock remaining high would clock in data, causing corruption in the printout.

Using the bitmap printer device would allow quite a bit of code in (pcw.cpp) pcw_stepper_callback to be removed, I've left the original printer and stepper code in and it still works to render a second (identical) printing screen.

Also the print key is assigned to the backslash key (so you can do the printer functions, like feeding paper).

I've also added a function to the bitmap printer device for a screen update callback, so a driver using the bitmap printer device can add it's own drawing to the screen (as there's a few other drivers that I'm working on that could use it, for example to render a color ribbon).

Running pcw8256 loco203 allows you to print the readme file, use keypad . to move the cursor down to select the readme, use p to print the document, keypad Enter to accept the dialogs, and backslash to activate the printer menu, where you can feed the paper and continue the print.

…rinter

bitmap_printer: add calccrpos for intermediate stepper position, add set_screen_update function
@goldnchild goldnchild closed this Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant