Show Posts
Pages: [1]
1  Using Arduino / Storage / Re: How to write and read the EEPROM? on: March 12, 2013, 09:56:08 pm
IT WORKS =DDDDDDD

thanks formal => http://babuino.info/post/45239830057/gravar-dados-na-eeprom-do-arduino-dados-de-ate-16-e-32

Has Google Translate plugin if you want to read ^ ^

2  Using Arduino / Storage / Re: How to write and read the EEPROM? on: March 12, 2013, 06:44:33 pm
Jack, how do I get that? #include <avr/eeprom.h>      //http://www.nongnu.org/avr-libc/user-manual/group__avr__eeprom.html

I just found that:

http://download.savannah.gnu.org/releases/avr-libc/

=/
3  Using Arduino / Storage / Re: How to write and read the EEPROM? on: March 09, 2013, 11:56:49 pm
That are the kind of values that I need to storage:

IRn2= 13646
3843765582
IRr= 13646
IRn= 13646


other exemple:
IRn2= 13646
1825097194
IRr= -14870
IRn= 13646

4  Using Arduino / Storage / Re: How to write and read the EEPROM? on: March 09, 2013, 11:21:41 pm
That´s what i need thk you =DDDD  smiley-lol

But I´m with doubts in the exemple:
Example

#include <EEPROM.h>

void setup()
{
  for (int i = 0; i < 512; i++)
    EEPROM.write(i, i);
}

void loop()
{
}

I have that comes form serial (IRlib):
  if (irrecv.decode(&results)) {  // IR
    Serial.println(results.value);  // IR
    irrecv.resume(); // IR

    IRr = (results.value * 1); 
    Serial.println(IRr );



How can I write IRr valor in the EEPROM?

Like this?
EEPROM.write(i, IRr);
  smiley-roll-sweat
5  Using Arduino / Storage / How to write and read the EEPROM? on: March 09, 2013, 10:48:01 pm
Hi guys,

That´s my first post here so please, apologize me for the dumb question, i was looking for and i didn´t found it.  smiley-red

I need to get a number valor from the serial and save it in EEPROM and read it, same  after arduino was restarted.

It´s like in shell script, you know:
number_serial > number.txt

cat number.txt > NUMBER01

Help me plz ^^
Pages: [1]