Comments (5)
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.
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.
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.
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.
@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)
- Write row by row (or image <device.width)
- scrolling text with Winstar_WEH 16x2 OLED
- support for ssd1315
- Trying to make a fake terminal HOT 2
- SSD1351 128x128 Color Issue HOT 3
- support for ssd1107/sh1107 HOT 9
- SSD1106 vs SH1106 HOT 2
- how to plot with this driver? HOT 1
- how do i change in code sh1106 driver , need location for code change ? HOT 2
- [question] access screens on remote Pi?
- Support for non-Raspberry Pi Linux boards HOT 1
- New Haven 2.7 oled with ssd1322 HOT 4
- ImportError: The _imagingft C module is not installed HOT 1
- White display SPI issue with 6.x kernels HOT 2
- Scrolling text within bounding box
- Input/output error for luma.oled HOT 6
- sys_info.py: error: I2C device not found on address: 0x3C.But i2c can detected on pi 4b arm64
- Low FPS on SSD1322 and Raspberry Pi 3B HOT 1
- Orange Pi zero2 error Timer expired HOT 2
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 luma.oled.