Comments (2)
It's a bit hidden, because the source uses 0x0030.to_bytes(2, 'little')
, and repeats this twice in lines 15 and 16.
What the printer really wants is 1d 76 30 00 xx xx yy yy
where the xx xx
is the number of bytes per row (pixels divided by 8) and yy yy
is the number of lines.
Also, I found out later, when writing my own code (https://github.com/gbl/phomemo/) that the M02S has actually 576 pixels, not 512, which translates to 72 bytes (hex 48). So you should replace the 0x0030
in line 16 (not in 15!) by 0x0048
, and then the 384 in line 78 by 576, twice.
from phomemo-tools.
Hey @gbl, would you mind sharing where exactly you changed the "initialization code"? I tried looking through the source code to find 0300
, but wasn't very successful. Thanks!
from phomemo-tools.
Related Issues (12)
- Question: other printers HOT 16
- Other Phomemo printer repos HOT 4
- M110/M120 Bluetooth using CUPS HOT 3
- Question: Compatibility with M220 HOT 16
- Question: M02 PRO HOT 2
- Phomemo Wireless Label Printer Model P12 info HOT 1
- T02 Phomemo seems incompatible - printing does not occur HOT 15
- now in AUR :-)
- Question: Image printing size HOT 1
- Bluetooth communication is too fast. HOT 2
- Changing licensing to MIT HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phomemo-tools.