An ESP32-based Redis-watcher and info-displayer https://rpjios.com
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.

35 lines
1.1 KiB

  1. #ifndef __ZW_COMMON__H__
  2. #define __ZW_COMMON__H__
  3. #define ZEROWATCH_VER "0.2.5.20"
  4. #define DEBUG 1
  5. #define M5STACKC 1
  6. #if M5STACKC
  7. #include <M5StickC.h>
  8. #endif
  9. struct ZWAppConfig
  10. {
  11. int brightness;
  12. int refresh;
  13. bool debug;
  14. bool publishLogs;
  15. bool pauseRefresh;
  16. bool deepSleepMode;
  17. };
  18. void __haltOrCatchFire();
  19. #define zwassert(cond) \
  20. do \
  21. { \
  22. if (!(cond)) \
  23. { \
  24. Serial.printf("ZWASSERT IN %s() AT %s:%d\n", __FUNCTION__, __FILE__, __LINE__); \
  25. __haltOrCatchFire(); \
  26. } \
  27. } while (0)
  28. #endif