Click here to Skip to main content
15,891,529 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Do you remember that time? Pin
obermd18-Dec-21 7:32
obermd18-Dec-21 7:32 
GeneralRe: Do you remember that time? Pin
Mike Hankey18-Dec-21 7:57
mveMike Hankey18-Dec-21 7:57 
GeneralRe: Do you remember that time? Pin
theoldfool18-Dec-21 9:33
professionaltheoldfool18-Dec-21 9:33 
GeneralRe: Do you remember that time? Pin
Greg Utas18-Dec-21 9:53
professionalGreg Utas18-Dec-21 9:53 
GeneralRe: Do you remember that time? Pin
DRHuff18-Dec-21 11:28
DRHuff18-Dec-21 11:28 
GeneralRe: Do you remember that time? Pin
Vivi Chellappa18-Dec-21 13:48
professionalVivi Chellappa18-Dec-21 13:48 
GeneralRe: Do you remember that time? Pin
Slow Eddie19-Dec-21 7:34
professionalSlow Eddie19-Dec-21 7:34 
QuestionWould you release this or not? Pin
honey the codewitch18-Dec-21 0:59
mvahoney the codewitch18-Dec-21 0:59 
Sorry, I'm not sure where to put this question, but I'd like opinions.

I have a graphics library, primarily targeting IoT devices. It has drivers for several displays.

The drivers could be faster, tbh. All of these drivers communicate over SPI (well there are I2C ones too but forget those for now). For those of you that don't know, SPI is a serial wire protocol that came about in like the 1980s or something. Your SD cards are SPI "slave devices"

I wrote a parallel driver for displays that support it. That means 8 data lines instead of one. It's not 8 times as fast, for hardware reasons, but it's much faster.

Anyway, I also refactored my new driver code so that it's layered, separating the concerns of driving the bus (either parallel or spi) and operating the specific display chip (like an ILI9341 or an ST7789)

The problem is this: I've optimized the SPI code in this new version and it only works on certain boards. There are timing issues. It's probably too fast, but I've had no luck getting it to work reliably. It only displays part of the tests, and then it freezes on most displays. As far as too fast, maybe the CS line control is too fast - it's not simply the SPI rate. I've tried changing that. For example, there's something called VDI rail that somehow needs more time to register a line change. I don't know more about it, it was just from sifting through Bodmer's code comments in TFT_eSPI, which I've been using as a guide.

So to recap, in the old code, it's all unoptimized SPI, but it works.

In the new code, there's also parallel support, and the unoptimized SPI works but the optimized SPI does not.

I *could* release it disabling the SPI optimizations, and keeping the parallel support and refactored code, but this release would have breaking changes - people would need to change existing code to use it.

I have no idea how long it will take me to fix the SPI. It vexes me.

My question is, should I release it, or should I wait until I can fix the SPI problems especially since it's a change that is disruptive to people's codebases?
Real programmers use butterflies

AnswerRe: Would you release this or not? Pin
0x01AA18-Dec-21 1:17
mve0x01AA18-Dec-21 1:17 
GeneralRe: Would you release this or not? Pin
honey the codewitch18-Dec-21 1:21
mvahoney the codewitch18-Dec-21 1:21 
GeneralRe: Would you release this or not? Pin
0x01AA18-Dec-21 1:31
mve0x01AA18-Dec-21 1:31 
GeneralRe: Would you release this or not? Pin
honey the codewitch18-Dec-21 2:38
mvahoney the codewitch18-Dec-21 2:38 
AnswerRe: Would you release this or not? Pin
Mike Hankey18-Dec-21 1:33
mveMike Hankey18-Dec-21 1:33 
GeneralRe: Would you release this or not? Pin
honey the codewitch18-Dec-21 2:36
mvahoney the codewitch18-Dec-21 2:36 
AnswerRe: Would you release this or not? Pin
Jo_vb.net18-Dec-21 2:23
mvaJo_vb.net18-Dec-21 2:23 
GeneralRe: Would you release this or not? Pin
bmarstella20-Dec-21 1:01
bmarstella20-Dec-21 1:01 
AnswerRe: Would you release this or not? PinPopular
Randor 18-Dec-21 1:44
professional Randor 18-Dec-21 1:44 
AnswerRe: Would you release this or not? Pin
theoldfool18-Dec-21 2:28
professionaltheoldfool18-Dec-21 2:28 
AnswerRe: Would you release this or not? Pin
dandy7218-Dec-21 4:44
dandy7218-Dec-21 4:44 
GeneralRe: Would you release this or not? Pin
honey the codewitch18-Dec-21 5:15
mvahoney the codewitch18-Dec-21 5:15 
AnswerRe: Would you release this or not? Pin
kmoorevs18-Dec-21 6:03
kmoorevs18-Dec-21 6:03 
GeneralRe: Would you release this or not? Pin
honey the codewitch18-Dec-21 6:04
mvahoney the codewitch18-Dec-21 6:04 
AnswerRe: Would you release this or not? Pin
Gerry Schmitz18-Dec-21 6:30
mveGerry Schmitz18-Dec-21 6:30 
GeneralRe: Would you release this or not? Pin
honey the codewitch18-Dec-21 6:31
mvahoney the codewitch18-Dec-21 6:31 
GeneralRe: Would you release this or not? Pin
Gerry Schmitz18-Dec-21 6:44
mveGerry Schmitz18-Dec-21 6:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.