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.

ArdUtils.h 483B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // Created by robin on 1/8/16.
  3. //
  4. /*
  5. #define ARD_UTILS_DELAYMS
  6. #define ARD_UTILS_UTF8
  7. */
  8. #ifndef ARDUTILS_ARDUTILS_H
  9. #define ARDUTILS_ARDUTILS_H
  10. #include "Arduino.h"
  11. class ArdUtils
  12. {
  13. public:
  14. #ifdef ARD_UTILS_DELAYMS
  15. static void delayMs(unsigned ms);
  16. #endif
  17. #ifdef ARD_UTILS_UTF8
  18. static void utf8ToAscii(char* s);
  19. #endif
  20. private:
  21. #ifdef ARD_UTILS_UTF8
  22. static byte _utf8ToAscii(byte ascii, byte& c1);
  23. #endif
  24. };
  25. #include "ArdUtils.cpp"
  26. #endif //ARDUTILS_ARDUTILS_H