My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

SdFile.h 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* Arduino SdFat Library
  2. * Copyright (C) 2009 by William Greiman
  3. *
  4. * This file is part of the Arduino SdFat Library
  5. *
  6. * This Library is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This Library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with the Arduino SdFat Library. If not, see
  18. * <http://www.gnu.org/licenses/>.
  19. */
  20. /**
  21. * \file
  22. * \brief SdFile class
  23. */
  24. #include "Marlin.h"
  25. #include "SdBaseFile.h"
  26. #include <Print.h>
  27. #ifndef SdFile_h
  28. #define SdFile_h
  29. //------------------------------------------------------------------------------
  30. /**
  31. * \class SdFile
  32. * \brief SdBaseFile with Print.
  33. */
  34. class SdFile : public SdBaseFile, public Print {
  35. public:
  36. SdFile() {}
  37. SdFile(const char* name, uint8_t oflag);
  38. #if ARDUINO >= 100
  39. size_t write(uint8_t b);
  40. #else
  41. void write(uint8_t b);
  42. #endif
  43. int16_t write(const void* buf, uint16_t nbyte);
  44. void write(const char* str);
  45. void write_P(PGM_P str);
  46. void writeln_P(PGM_P str);
  47. };
  48. #endif // SdFile_h