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 ..!

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

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support