Hello fellow DIY creators.
I am new at this forum, and english is not my native language, but I will do my best to explain my question clearly.
I am building an audio source selector (select form multiple sources, include BT and WiFi radio, and set selected on the output), with TFT LCD display and multiple other perypherials (SD card reader, IR control etc).
I have my hardware (ESP32) more or less prepared, concept was testet partially, but it is time for creating scalable, readable and maintainable code for the project.
And here's the clue:
What should be architecture used for this kind of project? Based on Object Oriented programming, or something else?
How to manage changing display of different graphics for different source selected, or setting selected, and how to change the purpose of buttons and encoder?
I know this is vague, but I don't want to write code with 20 layer of if statements, I believe there should be some other, more elegant way to handle these interfaces issues.
Does anybody have some experience with that and would like to share?