Skip to content
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

Support drawing compressed lines #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

KapitanOczywisty
Copy link

I've implemented drawing compressed lines, as they are sent from iprint. Compression has fallback when it reaches uncompressed line length (48 bytes).

@NaitLee
Copy link
Owner

NaitLee commented May 12, 2024

If you are sure it’s properly implemented, let’s merge this :) I personally don’t have a “new” device to test it.

Little suggestion: use -1 in place of null for previous in function* consecutiveBits, it looks cleaner for me lol

@KapitanOczywisty
Copy link
Author

KapitanOczywisty commented May 12, 2024

What model do you have? I'd test if your device does support this. Also I've found command to send 16 color gray-scale images, and this method uses lzo1x compression, so stay tuned.

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.

None yet

2 participants