Click here to Skip to main content
15,888,984 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: WSO CCC OTD 2022-08-31 Pin
pkfox30-Aug-22 21:58
professionalpkfox30-Aug-22 21:58 
GeneralRe: WSO CCC OTD 2022-08-31 - we have a winner! Pin
OriginalGriff30-Aug-22 22:01
mveOriginalGriff30-Aug-22 22:01 
GeneralRe: WSO CCC OTD 2022-08-31 - we have a winner! Pin
Craig Robbins31-Aug-22 0:19
Craig Robbins31-Aug-22 0:19 
GeneralRe: WSO CCC OTD 2022-08-31 - we have a winner! Pin
Kornfeld Eliyahu Peter31-Aug-22 0:30
professionalKornfeld Eliyahu Peter31-Aug-22 0:30 
GeneralRe: WSO CCC OTD 2022-08-31 - we have a winner! Pin
Richard MacCutchan31-Aug-22 0:34
mveRichard MacCutchan31-Aug-22 0:34 
GeneralRe: WSO CCC OTD 2022-08-31 - we have a winner! Pin
OriginalGriff31-Aug-22 0:39
mveOriginalGriff31-Aug-22 0:39 
GeneralRe: WSO CCC OTD 2022-08-31 - we have a winner! Pin
FreedMalloc31-Aug-22 12:39
FreedMalloc31-Aug-22 12:39 
GeneralI'm so overwhelmed. =/ Pin
honey the codewitch30-Aug-22 20:01
mvahoney the codewitch30-Aug-22 20:01 
I'm headdesking this code I'm trying to port. It's just a godawful mess. I'm barely treading water, even as I understand about 70% of it more or less, it's really difficult to modify.

https://github.com/KurtE/ILI9341_t3n
specifically:
https://github.com/KurtE/ILI9341_t3n/blob/master/src/ILI9341_t3n.cpp

Kurt's a nice guy. I've corresponded with him, not about this code directly, but about my attempt at making similar code that works with htcw_gfx, my graphics library for IoT devices.

That said, I hate the way he coded this. I feel like design was either an afterthought, or he just added to it over and over without ever bothering to step back and refactor. I've done that too, so it's not really a judgment of his coding in general, but it *is* difficult to deal with in this case.

Now I need to though, because for starters his device reads are not const (if you know C++ then you should understand the ramifications of that) and they aren't easily made const because of the way it's implemented, so if I want to read pixels off the display device I can't do that, because htcw_gfx expects readable things to be able to const.

I can fix that by moving all the driver communication code to a static template class whose arguments include the DC and CS pins, so I have statics per SPI device, but it means open heart surgery on Kurt's code, and I'm kind of overwhelmed trying to piece this all together. This is already my second attempt.

Sigh | :sigh:

I love building things, but sometimes the act itself stifles the creative part. Like, the inspiration for the creation vs the act of creation itself - sometimes they are at odds. Hebrew has words for each part of that creative process. I wish English did.
To err is human. Fortune favors the monsters.


modified 31-Aug-22 2:08am.

GeneralRe: I'm so overwhelmed. =/ Pin
Al_Brown31-Aug-22 0:07
Al_Brown31-Aug-22 0:07 
GeneralRe: I'm so overwhelmed. =/ Pin
honey the codewitch31-Aug-22 3:41
mvahoney the codewitch31-Aug-22 3:41 
GeneralRe: I'm so overwhelmed. =/ Pin
Greg Utas31-Aug-22 4:00
professionalGreg Utas31-Aug-22 4:00 
GeneralRe: I'm so overwhelmed. =/ Pin
honey the codewitch31-Aug-22 5:00
mvahoney the codewitch31-Aug-22 5:00 
GeneralRe: I'm so overwhelmed. =/ Pin
Gerry Schmitz31-Aug-22 7:13
mveGerry Schmitz31-Aug-22 7:13 
GeneralRe: I'm so overwhelmed. =/ Pin
honey the codewitch31-Aug-22 7:26
mvahoney the codewitch31-Aug-22 7:26 
GeneralRe: I'm so overwhelmed. =/ Pin
David O'Neil31-Aug-22 7:54
professionalDavid O'Neil31-Aug-22 7:54 
GeneralRe: I'm so overwhelmed. =/ Pin
honey the codewitch31-Aug-22 8:05
mvahoney the codewitch31-Aug-22 8:05 
GeneralRe: I'm so overwhelmed. =/ Pin
David O'Neil31-Aug-22 8:38
professionalDavid O'Neil31-Aug-22 8:38 
GeneralRe: I'm so overwhelmed. =/ Pin
Randor 31-Aug-22 8:20
professional Randor 31-Aug-22 8:20 
GeneralRe: I'm so overwhelmed. =/ Pin
honey the codewitch31-Aug-22 8:31
mvahoney the codewitch31-Aug-22 8:31 
GeneralWorldle 222 Pin
Amarnath S30-Aug-22 14:58
professionalAmarnath S30-Aug-22 14:58 
GeneralRe: Worldle 222 Pin
OriginalGriff30-Aug-22 18:54
mveOriginalGriff30-Aug-22 18:54 
GeneralRe: Worldle 222 Pin
Sander Rossel30-Aug-22 21:01
professionalSander Rossel30-Aug-22 21:01 
GeneralRe: Worldle 222 Pin
ChandraRam30-Aug-22 22:07
ChandraRam30-Aug-22 22:07 
GeneralRe: Worldle 222 Pin
megaadam31-Aug-22 7:17
professionalmegaadam31-Aug-22 7:17 
GeneralReality check for all you young uns and oldrsters... Pin
charlieg30-Aug-22 13:45
charlieg30-Aug-22 13:45 

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.