Coder Social home page Coder Social logo

Info about M02S about phomemo-tools HOT 2 CLOSED

vivier avatar vivier commented on August 22, 2024
Info about M02S

from phomemo-tools.

Comments (2)

gbl avatar gbl commented on August 22, 2024 1

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.

privatwolke avatar privatwolke commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.