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.

Print.h 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. Print.h - Base class that provides print() and println()
  3. Copyright (c) 2008 David A. Mellis. All right reserved.
  4. This library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with this library; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  15. */
  16. #ifndef Print_h
  17. #define Print_h
  18. #include <inttypes.h>
  19. #define DEC 10
  20. #define HEX 16
  21. #define OCT 8
  22. #define BIN 2
  23. #define BYTE 0
  24. class Print
  25. {
  26. private:
  27. void printNumber(unsigned long, uint8_t);
  28. void printFloat(double, uint8_t);
  29. public:
  30. virtual void write(uint8_t);
  31. void print(char);
  32. void print(const char[]);
  33. void print(uint8_t);
  34. void print(int);
  35. void print(unsigned int);
  36. void print(long);
  37. void print(unsigned long);
  38. void print(long, int);
  39. void print(double);
  40. void println(void);
  41. void println(char);
  42. void println(const char[]);
  43. void println(uint8_t);
  44. void println(int);
  45. void println(unsigned int);
  46. void println(long);
  47. void println(unsigned long);
  48. void println(long, int);
  49. void println(double);
  50. };
  51. #endif