Skip to content

feat: support 360 DPI devices like PT-P910BT #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

aschmitz
Copy link
Contributor

@aschmitz aschmitz commented Apr 6, 2025

This is about as minimal an implementation as I can manage at the moment, though it still passes around the resolution more than I might like. Tested on both a PT-P910BT and a PT-P710BT.

Closes #60.

(Also adds debug logging of data read from the USB device alongside logging of data written.)

This works, but it may not necessarily be in keeping with what you were thinking. The changes end up affecting most of the classes, because most of them need to know the DPI for various reasons. (Even down to the level of the set_print_info command, which apparently needs to set the page type to 2 for 360 DPI printers in order to trigger the "last page" behavior including printing smaller labels or cutting any labels. But of course setting it to 2 in 180 DPI printers causes them to hang.)

If you'd like any changes, I'm happy to either attempt them myself, or you're welcome to make the relevant changes to my branch if you'd like.

aschmitz added 2 commits April 6, 2025 17:47
This is about as minimal an implementation as I can manage at the
moment, though it still passes around the resolution more than I might
like. Tested on both a PT-P910BT and a PT-P710BT.

Closes ryankurte#60.

(Also adds debug logging of data read from the USB device alongside
logging of data written.)
@ryankurte
Copy link
Owner

good effort! i need to fix the CI but otherwise happy to merge the new functionality / play with things later if we come up with better abstractions.

But of course setting it to 2 in 180 DPI printers causes them to hang

of course 🙃

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.

Supporting PT-P910BT / Cube XP
2 participants