.S
DESCRIPTION
.S(x) returns the x string of the block memory created..
SYNTAX
.S(byte);
PARAMETERS
A byte number of the string for that block.
RETURNS
The string.
EXAMPLE
#include
#include
//declares the eStr at address 1000, for the 0x50 I2C. //InvIoT_U1 is hardware set for this address. InvIoT_EEPROM eStr(1000, 0x50); void setup() { Serial.begin(115200); Wire.begin(); //dont forget to start Wire. // you can add up to 20 strings in the eStr block. //The block starts at address 1000. eStr.newSt(20,1000,0x50); eStr.addSt("This string is the first string added to the block starting at address 1000"); eStr.addSt("You can add many Strings."); eStr.addSt("don't forget. The maximum number of strings that was declare is 20!!"); eStr.addSt("very usefull for storing HTML. It feels endless"); } void loop() { Serial.println("\n\n\n"); Serial.println(eStr.S(0)); Serial.println(eStr.S(1)); Serial.println(eStr.S(2)); Serial.println(eStr.S(3)); delay(5000); }
SEE ALSO
.setYYMMDDHHMMSS
.setYYMMDD
.setHHMMSS
.getYYMMDDHHMMSS
.getTime24