So been busy with Arduino lately, use of home automation by making a server.
Did a few sketches with uno, ethernet shield and SD but found it was to slow reacting.
Got myself a mega and started without the use of the SD but things got a bit out of hand and out of memory, so used the (F ) to save sram memory to flash, this however slowed things down a bit, not as much as reading from SD but still.
My site is refreshing every 2 seconds and on sram only the site changes pretty smooth, now on flash it's not that smooth anymore.
On sram only it used up 85% (edited more lateron so probebly would be more now.
Arduino is warning for low on memory but I think it looks at the percentage, not the left bytes.
Therefor the memory warning with an uno is at the same procent as the mega whilst the mega has lots of more bytes left, wil it really get bad?
Well I changed a lot to flash, not knowing it would slow down.
Anyone a suggestion to smoothen this up?
maybe go with ajax? I rather not start all over again...
Aj, message is over 9000characters, how do I upload?
Do it in 2 times?
Hard to explain the sketch, too much going on
/* sketch, webserver without sd for use on mega + ethernet shield,
for in my pumphouse, controling electric dogfence, electric fences, irrigation and pumps (4 subjects)
making 4 subjects with buttons to show contents of each subject (and an INDEX button to go back), hiding the other subjects.
with checkboxes to see some activity
contents consist of switching relais, reading switches and analog inputs with different colors for on and off, etc
also use of colored boxes and buttons showing turn on when it is turned off etc
*/