Konfiguration über http
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
123456789101112131415161718192021222324252627282930313233343536373839
  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