Code Monkey home page Code Monkey logo

Comments (5)

rm-hull avatar rm-hull commented on June 26, 2024

So it will be already correct for the vast majority of devices .. except yours. I have found there to be many quirks with what are the "same" chipsets.. so the key here would be to retain existing behaviour but allow that parameter to be overridden for cases such as yours.

from luma.oled.

gsmecher avatar gsmecher commented on June 26, 2024

Are there 96x16 devices in the wild that follow the existing _colstart math? If so, then definitely, those devices absolutely need to keep working, and I can draft a PR that allows overrides.

from luma.oled.

gsmecher avatar gsmecher commented on June 26, 2024

Actually, I think a regression with 96x16 displays was introduced in 2017, in this commit and my PR should correct it.

The 2017 commit added the _colstart logic in question. Before it, 96x16 displays were supported but would have had an equivalent _colstart of 0. After it, 96x16 displays would have used a _colstart of 16. My PR restores the original behaviour.

from luma.oled.

thijstriemstra avatar thijstriemstra commented on June 26, 2024

the key here would be to retain existing behaviour but allow that parameter to be overridden for cases such as yours.

Agreed. Ideally, this would be tested with (eg intel desktop machine) and without ftdi_i2c (rpi).

from luma.oled.

gsmecher avatar gsmecher commented on June 26, 2024

@thijstriemstra - I can put together something that exposes _colstart as a parameter if you like, but I think this issue (and the linked PR #368) are pure regression fixes that do not justify a configurable parameter or API changes on their own.

ed: in case this seems fussy: I want to be sure I'm not adding clutter code to a project I may not use long-term.

from luma.oled.

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.