esp_interface.h 516 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef esp_interface_h
  2. #define esp_interface_h
  3. #include "configs.h"
  4. #ifdef HAS_SCREEN
  5. #include "Display.h"
  6. #endif
  7. #include <HardwareSerial.h>
  8. #define ESP_RST 14
  9. #define ESP_ZERO 13
  10. #define BAUD 115200
  11. #ifdef HAS_SCREEN
  12. extern Display display_obj;
  13. #endif
  14. class EspInterface {
  15. public:
  16. bool supported = false;
  17. uint32_t initTime;
  18. void RunUpdate();
  19. void bootProgramMode();
  20. void bootRunMode();
  21. void begin();
  22. void program();
  23. void main(uint32_t current_time);
  24. };
  25. #endif