meshtastic-firmware/variants/heltec_v2.1/variant.h

34 wiersze
1.2 KiB
C
Czysty Zwykły widok Historia

2022-04-02 03:38:23 +00:00
// Pin planning should refer to this document
// https://resource.heltec.cn/download/WiFi_LoRa_32/WIFI_LoRa_32_V2.pdf
// the default ESP32 Pin of 15 is the Oled SCL, 37 is battery pin.
2022-01-24 19:40:28 +00:00
// Tested on Neo6m module.
#undef GPS_RX_PIN
#undef GPS_TX_PIN
#define GPS_RX_PIN 36
2022-04-02 03:38:23 +00:00
#define GPS_TX_PIN 33
2022-01-24 19:40:28 +00:00
#ifndef USE_JTAG // gpio15 is TDO for JTAG, so no I2C on this board while doing jtag
#define I2C_SDA 4 // I2C pins for this board
#define I2C_SCL 15
#endif
#define RESET_OLED 16 // If defined, this pin will be used to reset the display controller
#define VEXT_ENABLE 21 // active low, powers the oled display and the lora antenna boost
#define LED_PIN 25 // If defined we will blink this LED
#define BUTTON_PIN 0 // If defined, this will be used for user button presses
#define USE_RF95
#define LORA_DIO0 26 // a No connect on the SX1262 module
#ifndef USE_JTAG
#define LORA_RESET 14
#endif
#define LORA_DIO1 35 // Not really used
#define LORA_DIO2 34 // Not really used
#define ADC_MULTIPLIER 3.8
2022-01-24 19:40:28 +00:00
#define BATTERY_PIN 37 // A battery voltage measurement pin, voltage divider connected here to measure battery voltage
2022-02-27 10:21:02 +00:00
#define EXT_NOTIFY_OUT 13 // Default pin to use for Ext Notify Module.