EEPROM Write (Arduino Uno)

What is it that takes so long that you only get 900 readings in 17 seconds ?

septillion:
I would indeed also prefer the .put() and .get() above a function where you have to cast the shit out of it to use it... ::slight_smile:

Um... you have to cast your values to use get and put.

In fact, I just discovered that in my code. I tried to write "0xFF" to each byte, but the template (correctly) interpreted the static 0xFF as an INT (16 bits) so it was writing FF 00 FF 00...etc... and I had to specifically cast it as (uint8_t) 0xFF to get what I wanted.

The get() and put() in the 1.8.x library does exactly the same thing.

krupski:
Um... you have to cast your values to use get and put.

No...

[/quote]
and I had to specifically cast it as (uint8_t) 0xFF to get what I wanted.
[/quote]
That's because you don't use a Lvalue variable but a Rvalue. And a Rvalue is int by default.

If you use a byte with put() it will just use 1 byte in EEPROM without casting.