Click here to Skip to main content
15,881,898 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: Wordle Hurdle Pin
Peter_in_278024-Mar-22 13:48
professionalPeter_in_278024-Mar-22 13:48 
GeneralRe: Wordle Hurdle Pin
Amarnath S24-Mar-22 15:04
professionalAmarnath S24-Mar-22 15:04 
GeneralRe: Wordle Hurdle Pin
oofalladeez34324-Mar-22 15:22
professionaloofalladeez34324-Mar-22 15:22 
GeneralRe: Wordle Hurdle Pin
OriginalGriff24-Mar-22 21:05
mveOriginalGriff24-Mar-22 21:05 
GeneralRe: Wordle Hurdle Pin
den2k8824-Mar-22 21:36
professionalden2k8824-Mar-22 21:36 
GeneralRe: Wordle Hurdle Pin
dan!sh 24-Mar-22 22:21
professional dan!sh 24-Mar-22 22:21 
GeneralRe: Wordle Hurdle Pin
0x01AA25-Mar-22 0:43
mve0x01AA25-Mar-22 0:43 
GeneralI'm tripping over myself trying to apply classic design principles to an unclassical object Pin
honey the codewitch24-Mar-22 10:10
mvahoney the codewitch24-Mar-22 10:10 
I've got a beast of a piece of hardware. This little widget here:

Lilygo T5 4.7" E-Paper Device[^]

It's an all in one system, with the display panel deeply embedded into how the whole thing operates, and that's where it gets weird design-wise.

When I say deeply embedded I mean something like 14 pins on the main system are tied up to driving the display. Meanwhile, the display itself has a framebuffer which must be stored in the SoC's extended PSRAM in order to function. And finally, to drive the display requires hardware specific to the ESP32 SoC it's attached to. (Though I guess someone particularly ambitious could get it to work on a STM32 but there wouldn't be enough RAM)

There's no way I'm driving this e-paper panel outside this unit itself.

The whole thing is deeply integrated, to where it doesn't really make sense to segregate the display code from the hardware it runs on. For example, all my pin assignments can be hard coded, because they are hardwired on this device. I can assume 4MB of RAM (16 really, but 4 available under the Arduino framework), and I can make specific calls into the SoC's RTOS.

This shouldn't be causing me design issues, but every instinct in me is crying out to compartmentalize this code - like not assume pin assignments or the presence of an ESP32 WROVER, or anything like that. That's silly. I have no reason to do it. It doesn't make sense to do it. So why such a strong pull in that direction?

So I'm sitting here, tapping at VS Code in fits and starts, and I don't really know where to begin because I have to work against my instincts as a developer.

Maybe I *should* compartmentalize it just so I can operate within my normal parameters, but that would greatly complicate a lot of the code.

One problem with coding all my life is my instincts are too strong at this point.
To err is human. Fortune favors the monsters.

GeneralRe: I'm tripping over myself trying to apply classic design principles to an unclassical object Pin
David O'Neil24-Mar-22 10:37
professionalDavid O'Neil24-Mar-22 10:37 
GeneralRe: I'm tripping over myself trying to apply classic design principles to an unclassical object Pin
honey the codewitch24-Mar-22 11:05
mvahoney the codewitch24-Mar-22 11:05 
GeneralRe: I'm tripping over myself trying to apply classic design principles to an unclassical object Pin
TNCaver24-Mar-22 11:24
TNCaver24-Mar-22 11:24 
GeneralRe: I'm tripping over myself trying to apply classic design principles to an unclassical object Pin
honey the codewitch24-Mar-22 11:40
mvahoney the codewitch24-Mar-22 11:40 
GeneralI was robbed... PinPopular
Mike Hankey24-Mar-22 10:08
mveMike Hankey24-Mar-22 10:08 
GeneralRe: I was robbed... Pin
obermd24-Mar-22 10:40
obermd24-Mar-22 10:40 
GeneralRe: I was robbed... Pin
Greg Utas24-Mar-22 10:50
professionalGreg Utas24-Mar-22 10:50 
GeneralRe: I was robbed... Pin
oofalladeez34324-Mar-22 16:36
professionaloofalladeez34324-Mar-22 16:36 
GeneralRe: I was robbed... Pin
Slacker00725-Mar-22 2:44
professionalSlacker00725-Mar-22 2:44 
GeneralRe: I was robbed... Pin
obermd25-Mar-22 5:37
obermd25-Mar-22 5:37 
GeneralRe: I was robbed... PinPopular
jeron124-Mar-22 11:22
jeron124-Mar-22 11:22 
GeneralRe: I was robbed... Pin
TNCaver24-Mar-22 11:25
TNCaver24-Mar-22 11:25 
GeneralRe: I was robbed... Pin
jeron124-Mar-22 11:42
jeron124-Mar-22 11:42 
JokeRe: I was robbed... Pin
oofalladeez34324-Mar-22 16:36
professionaloofalladeez34324-Mar-22 16:36 
GeneralRe: I was robbed... Pin
obermd25-Mar-22 5:38
obermd25-Mar-22 5:38 
GeneralRe: I was robbed... Pin
jeron125-Mar-22 6:18
jeron125-Mar-22 6:18 
JokeRe: I was robbed... Pin
oofalladeez34325-Mar-22 10:53
professionaloofalladeez34325-Mar-22 10:53 

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.