void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
eepromNWrite4bytes(0,40000);
delay(1000);
}
bool eepromNWrite4bytes(uint8_t addr, uint32_t valeur){
uint8_t byte1,byte2,byte3,byte4;
//Wire.beginTransmission(EEPROM_CTRL_REG);
//Wire.write(EEPROM_STATUS_ACCESS_REG);
//Wire.write(0);
//uint8_t i = Wire.endTransmission(true);
//i = eepromACKwait();
byte1 = valeur;
byte2 = valeur>>8;
byte3 = valeur>>16;
byte4 = valeur>>24;
Serial.print(byte4);
//Wire.beginTransmission(EEPROM_CTRL_REG);
//Wire.write(addr);
//Wire.write(byte1);
//i = Wire.endTransmission(true);
//if(i!=0) return 0;
//i = eepromACKwait();
//if(i==0) return 0;
}