1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| // This table stores user settings, written on the UNO EEPROM ==========================================================================
#define EusLen 18
#define EusOffset 3
#define EusServerIP 0
#define EusClientIP 4
#define EusDelayPingServer 8
#define EusBacklightMinDarkness 9
#define EusBacklightAmbiantLightK 10
#define EusBacklightTimeout 11
#define EusMacAddress 12
byte EepromUserSettings[EusLen]; // = { 192, 168, 123, 032, 192, 168, 123, 177, 010, 205, 003, 012, 0xA8, 0x61, 0x0A, 0xAE, 0x75, 0xCA};
// 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// ---------------- ---------------- --- --- --- --- ----------------------------------
// SERVER IP CLIENT IP 8:Delay Ping MAC ADDRESS
// 9:Backlight min value
// WARING : SERVER and CLIENT are connected to the same local network 10:Backlight ambiant light K
// bytes 0, 1 and 2 of server.IP and client.IP are the same 11:Backlight timeout
// so we don't store bytes 0, 1 and 2 of server.IP in EEPROM
//
// Calibration data of touch screen is also stored in EEPROM after bytes [EusOffset] to [EusLen-1] of EepromUserSettings[]
// ===================================================================================================================================== |