Serial - EEPROM
i need read eeprom, sending position read serial monitor eg
value = eeprom.read (sent serial monitor);
the problem data sent received ascii given ej: 1 = 49 reads instructions eeprom.read position 49 , not 1 want.
use 1 subtracts ej: num = value - 48 works positions 0 9.
i appreciate help, thank ..!
value = eeprom.read (sent serial monitor);
the problem data sent received ascii given ej: 1 = 49 reads instructions eeprom.read position 49 , not 1 want.
use 1 subtracts ej: num = value - 48 works positions 0 9.
i appreciate help, thank ..!
quote
use 1 subtracts ej: num = value - 48 works positions 0 9.
what other digits plan on sending?
if want multi-digit numbers, combine individual digits in meaningful way. done collecting data in null-terminated char array, until end of packet marker arrives, , calling atoi() array.
if can't that, use serial.parseint().
Arduino Forum > Using Arduino > Programming Questions > Serial - EEPROM
arduino
Comments
Post a Comment