Nice project indeed
tochinet:
As an exercise to regain memory, maybe you could try removing all the "OO" layering ?
I'm not sure how efficient the compiler does that, but if you don't define buttons and relays etc. as objects,
but simply as functions, it should spare memory space.Or am I just an ignorant of modern C++ compilers ? (which I am
)
Can you point out any official source which states that is the case? My google search "object oriented programming and memory usage" did not surface anything.
I ask because I know how a C++ compiler works and there is indeed a memory overhead (due to the indirection table of the object) when using virtual functions. However you will have a overhead as well when solving the same problem in a functional way.
I agree it is a bad way to use dynamic memory management on a small chip because there is simply not enough memory management capability on board.
But you can uses dynamic memory in both OO and functional programming. (In other words don't use new.)
Please point me to a good source that proves your point so I can educate myself.
Best regards
Jantje