I need to read an EEPROM, but sending the position read from the serial monitor eg
value = EEPROM.read (sent from serial monitor);
The problem is that the data sent is received as ASCII then given by ej: 1 = 49 then reads the instructions eeprom.read position 49 and not 1 as I want.
Use one subtracts ej: num = Value - 48 but this only works for positions 0 to 9.
Use one subtracts ej: num = Value - 48 but this only works for positions 0 to 9.
What other digits do you plan on sending?
If you want multi-digit numbers, it is up to you to combine the individual digits in a meaningful way. Usually this is done by collecting the data in a NULL-terminated char array, until the end of packet marker arrives, and then calling atoi() with the array.