Above is a screen dump for Task 51. Unlike the previous time, it's behaving as it should!I don't know why, but it's encouraging..
..haven't been feeling too confident about this stuff lately, what with my Minor Project falling over..
(sigh)
(come on you graphics genii -
where's my 'sigh' icon?)
/*
* Project: Task_51_EEPROM_ScreenDump_v2
* Author: Jane-Maree Howard
* Date: Friday 14/05/2010
* Platform: Arduino 18
* Purpose: To demonstrate an EEPROM read program
* Operation: Description: Loops from 0 - 512, reading the values
stored in the EEPROM & printing them to
the Serial Monitor
Include:
Declare: eeprom address, eeprom value
Setup(): Serial Monitor
Loop(): Read from Address=0 to Address=512 & output to SM
*/
#include EEPROM.h // Library needed to use EEPROM
int a = 0; // eeprom address
int value; // value stored at eeprom address
void setup()
{
Serial.begin(9600);
}//end setup()
void loop()
{
value = EEPROM.read(a); // starting from address a=0..
Serial.print(a); //..read & print to SM the address..
Serial.print("\t");
Serial.print(value); //..& the value stored there
Serial.println();
a = a + 1; // next address (increment)
if (a == 512) //..start all over again
a = 0;
delay(500);
}//end loop()
In the above codings there are
#include EEPROM.h
statements.
Around the EEPROM.h there should be 'less-than' &
'greater-than' symbols.
these don't show up in these blog postings..
..don't forget them!

And it's getting late & the 'plods' will be here soon to kick me out
ReplyDelete(Where's My 'Sigh' Icon, Guys??????)