Advertisement
RuiViana

Testa_File_ESP

Feb 1st, 2017
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1.  
  2. #include "FS.h"
  3.  
  4. void setup()
  5. {
  6.   Serial.begin(115200);
  7.   SPIFFS.begin();
  8.   Serial.println("");
  9.   Serial.println("Abrindo arquivos");
  10. }
  11.  
  12. void loop()
  13. {
  14.  File f = SPIFFS.open("/f.txt", "w");
  15. if (!f)
  16. {
  17.     Serial.println("file open failed");
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement