value = EEPROM.read(0); does not working? Help,,,

Heip,

I am new on this forum, but i have been reading a lot of this.
Using google and reading other forums i don’t find the answer.

First code don’t work. Last one works… But what is the different ?

First is my own code, of cause there is lot more code in it, but there is all what has made part of EEPROM.read…
And still that code is not working even it’s own. After code there is those error messages…

Next code is from tutorials and it read EEPROM fine, I wrote, 0,160 and there it is…

Please can some one help me, I really dont know what goes wrong.
I use Arduino One but I think that is not matter, cause demo code works.

Pedro

#include <EEPROM.h>
byte value;
void setup () {
             Serial.begin(9600);
}
void loop () {
     value = EEPROM,read(0); 
     Serial.println( value );
}

Error messages…
sketch_feb03a.ino: In function ‘void loop()’:
sketch_feb03a:9: error: cannot convert ‘EEPROMClass’ to ‘byte’ in assignment
sketch_feb03a:9: error: ‘read’ was not declared in this scope

#include <EEPROM.h>
int address = 0;
byte value;

void setup() {
  Serial.begin(9600);
  while (!Serial) {
    ;                                    }  }

void loop() {
  value = EEPROM.read(address);
  Serial.print(address);
  Serial.print("\t");
  Serial.print(value, DEC);
  Serial.println();
    address = address + 1;
  if (address == 512)
    address = 0;   
  delay(500);                     }

This work fine and returns 160 on 0…

value = EEPROM,read(0); You ???? its . not , !!!!!!!!!!!!!!!!!!!!!!!

Mark

You need read glasses

M

Heip Mark,

You are right...

My head is a penalty position....

Thanks Pedro

In the IDE you can set the editor font size. I have old eyes, even with glasses mine is set to 20. This is with a 1440x900 19" LCD panel.