HeltecT190Board.h 750 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include <Arduino.h>
  3. #include <helpers/RefCountedDigitalPin.h>
  4. #include <helpers/ESP32Board.h>
  5. #include <driver/rtc_io.h>
  6. // LoRa radio module pins for heltec_vision_master_e290
  7. #define P_LORA_DIO_1 14
  8. #define P_LORA_NSS 8
  9. #define P_LORA_RESET 12
  10. #define P_LORA_BUSY 13
  11. #define P_LORA_SCLK 9
  12. #define P_LORA_MISO 11
  13. #define P_LORA_MOSI 10
  14. class HeltecT190Board : public ESP32Board {
  15. public:
  16. RefCountedDigitalPin periph_power;
  17. HeltecT190Board() : periph_power(PIN_VEXT_EN,PIN_VEXT_EN_ACTIVE) { }
  18. void begin();
  19. void enterDeepSleep(uint32_t secs, int pin_wake_btn = -1);
  20. void powerOff() override;
  21. uint16_t getBattMilliVolts() override;
  22. const char* getManufacturerName() const override ;
  23. };