Konfiguration über http
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

40 wiersze
590B

  1. #ifndef System_h
  2. #define System_h
  3. #include <Arduino.h>
  4. /**
  5. * System Class.
  6. *
  7. * @author Matthias Maderer
  8. * @version 1.1.7
  9. */
  10. class System {
  11. public:
  12. /**
  13. * Returns the uptime of the arduino with a char pointer.
  14. * Format: DAYS:HOURS:MINUTES:SECONDS
  15. * Sample: 1:20:23:50 = 1 day, 20 hours, 23 minutes and 50 seconds
  16. * @return char *: pointer!
  17. */
  18. char * uptime();
  19. /**
  20. * Returns the free RAM
  21. * @return int: free RAM
  22. */
  23. int ramFree();
  24. /**
  25. * Returns the size of the RAM
  26. * @return int: RAM size
  27. */
  28. int ramSize();
  29. private:
  30. char retval[25];
  31. };
  32. #endif