RuiViana

Teste_EEPROM_Float

Mar 24th, 2018
139
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <EEPROM.h>
  2. float teste = 0;
  3. float xpto = 123.45;
  4. void setup()
  5. {
  6.  
  7.   Serial.begin(9600);
  8.   EEPROM.put(0, xpto);
  9.   EEPROM.get(0, teste);
  10.  
  11.   Serial.println(teste);
  12. }
  13.  
  14. void loop()
  15. {
  16.  
  17. }
RAW Paste Data