Coder Social home page Coder Social logo

Mirrored text about cale-idf HOT 5 CLOSED

Johboh avatar Johboh commented on September 16, 2024
Mirrored text

from cale-idf.

Comments (5)

Johboh avatar Johboh commented on September 16, 2024 1

@martinberlin I cherry picked your commit and now the text is correct, thanks! I also verified black and red colors as well as that all rotations where correct.

from cale-idf.

Johboh avatar Johboh commented on September 16, 2024 1

Yes I'm using CalEPD and Adafruit GFX IDF as components in the project.

from cale-idf.

martinberlin avatar martinberlin commented on September 16, 2024

Maybe I didn't test rotation right. Will take a look but I don't have one of this with 2 colors.
What you can try and fix it yourself since this was a external contribution that I approved but never had a display to test.

Just try to invert the update loop (check it also for red since it has 2 buffers)
https://github.com/martinberlin/cale-idf/blob/master/components/CalEPD/models/color/gdeh0154z90.cpp#L100

       // REVERSE either x or y but start with Y:

        for (uint16_t y = GDEH0154Z90_HEIGHT; y > 0; y--)
      {
        for (uint16_t x = 0; x < xLineBytes; x++)
        {
          uint16_t idx = y * xLineBytes + x;  
          x1buf[x] = (idx < sizeof(_mono_buffer)) ? ~ _mono_buffer[idx] : 0xFF;
        }
        // Flush the X line buffer to SPI
        IO.data(x1buf, sizeof(x1buf));
      }

As a reference check gdey0154d67
If that works please test all rotation modes to see it works as expected (Write 2 lines one in each color)
And then please make a Merge Request so you contribute to fix the issue.

If you manage to solve it then I will try it with a similar display but only black and merge it.

- - - - If this works you don't have to do anything:
FIX proposed in develop branch Please switch to that branch and test it, also with red, and different rotations. Thanks for your time

from cale-idf.

martinberlin avatar martinberlin commented on September 16, 2024

Thanks for the test. Will merge it into master soon!
Mind that to use this as a component you need to use CalEPD that is in a different repository. Is easier and lighter. Moving this update there also quite soon

from cale-idf.

martinberlin avatar martinberlin commented on September 16, 2024

Latest this weekend develop is merged in master here and then I copy the contents to CalEPD and make a new release

from cale-idf.

Related Issues (20)

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.