User manual
002
{
003
String xBuffer;
004
005
for (int i = 0; i <= sizeof(site); i++)
006
{
007
char myChar = pgm_read_byte_near(site + i);
008
xBuffer += myChar;
009
}
010
011
for (int x = 2; x <= 7; x++)
012
{
013
if (PORTD & (1 << x))
014
{
015
xBuffer.replace("*checked" + String(x) + "*", "checked");
016
}
017
else
018
{
019
xBuffer.replace("*checked" + String(x) + "*", "");
020
}
021
}
022
return xBuffer;
023
}
I had some problems when creating this program. The cause wasn't clear at first.
There were strange errors when loading the website, and the entirely wrong
checkboxes were often checked. The Arduino-MemoryFree-Master-Library
(http://playground.arduino.cc/Code/AvailableMemory) helped me find the solution:
The SRAM memory had reached its limits, and this caused very strange, random
errors. I had to clearly reduce the original version of the program and the HMTL
code for the program to work in this version. I mention this because the same may
happen to you when you create your own projects. The reason for the great stress