RTC DS1307 RAM 

明日実験予定 楽しみ
/*http://www.glacialwanderer.com/hobbyrobotics/?p=12#comment-3723*/
//http://arms22.blog91.fc2.com/blog-entry-232.html
http://forum.arduino.cc/index.php/topic,28127.0.html
#include
#include
#define DS1307_I2C_ADDRESS 0x68

int DS1307_ADDRESS=0x68;
int colorLED, ctrlb7;
byte sec,minute,hour,day,week,month,year;
byte adr=9;
//byte adr=100;//0x3f63まで
void setup(){
Wire.begin();
Serial.begin(9600);
}

void loop(){
for ( colorLED=0;colorLED<256;colorLED++){//colorLED<256まで
RTCwrite();
RTCread();
}
}

void RTCwrite()
{
Wire.beginTransmission(DS1307_I2C_ADDRESS);
Wire.write(adr);
Wire.write*1;
Wire.endTransmission();
//delay (20);
}


void RTCread(){
Wire.beginTransmission(DS1307_ADDRESS);
Wire.write(adr);
Wire.endTransmission();
Wire.requestFrom(DS1307_ADDRESS,8);
ctrlb7=Wire.read() ;

Serial.print("colorLED= ");
Serial.print(colorLED);
Serial.print(" readLED= ");
Serial.println(ctrlb7,DEC);

}

*1:colorLED