pins.h 466 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef PINS_H_
  2. #define PINS_H_
  3. #undef OLED_SDA
  4. #undef OLED_SCL
  5. #undef OLED_RST
  6. #define OLED_SDA 21
  7. #define OLED_SCL 22
  8. #define OLED_RST 16
  9. #define BUTTON_PIN 38 // The middle button GPIO on the T-Beam
  10. #ifdef TTGO_T_Beam_V0_7
  11. #define GPS_RX 15
  12. #define GPS_TX 12
  13. #endif
  14. #if defined(TTGO_T_Beam_V1_0) || defined(TTGO_T_Beam_V1_2)
  15. #define GPS_RX 12
  16. #define GPS_TX 34
  17. #endif
  18. #define BATTERY_PIN 35
  19. #define BATTERY_SDA_PIN 21
  20. #define BATTERY_SCl_PIN 22
  21. #endif