heltec board file fixes

This commit is contained in:
Verkehrsrot 2019-03-13 20:20:31 +01:00
parent 3b3b2810cb
commit f58cad9b57
2 changed files with 11 additions and 7 deletions

View File

@ -5,9 +5,9 @@
#include <stdint.h> #include <stdint.h>
// Hardware related definitions for Heltec V2 LoRa-32 Board // Hardware related definitions for Heltec V1 LoRa-32 Board
//#define HAS_BME GPIO_NUM_21, GPIO_NUM_22 // SDA, SCL //#define HAS_BME GPIO_NUM_4, GPIO_NUM_15 // SDA, SCL
//#define BME_ADDR BME680_I2C_ADDR_PRIMARY // connect SDIO of BME680 to GND //#define BME_ADDR BME680_I2C_ADDR_PRIMARY // connect SDIO of BME680 to GND
#define HAS_LORA 1 // comment out if device shall not send data via LoRa #define HAS_LORA 1 // comment out if device shall not send data via LoRa
@ -18,13 +18,13 @@
#define HAS_BUTTON KEY_BUILTIN // button "PROG" on board #define HAS_BUTTON KEY_BUILTIN // button "PROG" on board
// Pins for I2C interface of OLED Display // Pins for I2C interface of OLED Display
#define MY_OLED_SDA (21) #define MY_OLED_SDA (4)
#define MY_OLED_SCL (22) #define MY_OLED_SCL (15)
#define MY_OLED_RST (16) #define MY_OLED_RST (16)
// Pins for LORA chip SPI interface come from board file, we need some // Pins for LORA chip SPI interface come from board file, we need some
// additional definitions for LMIC // additional definitions for LMIC
#define LORA_IO1 (33) #define LORA_IO1 (33)
#define LORA_IO2 LMIC_UNUSED_PIN #define LORA_IO2 (32)
#endif #endif

View File

@ -17,6 +17,10 @@
#define HAS_LED LED_BUILTIN // white LED on board #define HAS_LED LED_BUILTIN // white LED on board
#define HAS_BUTTON KEY_BUILTIN // button "PROG" on board #define HAS_BUTTON KEY_BUILTIN // button "PROG" on board
//#define HAS_BATTERY_PROBE ADC2_GPIO13_CHANNEL // battery probe GPIO pin
#define BATT_FACTOR 4 // voltage divider 220k/100k on board
#define HAS_LOWPOWER_SWITCH GPIO_NUM_21 // switches battery power
// Pins for I2C interface of OLED Display // Pins for I2C interface of OLED Display
#define MY_OLED_SDA (4) #define MY_OLED_SDA (4)
#define MY_OLED_SCL (15) #define MY_OLED_SCL (15)
@ -27,4 +31,4 @@
#define LORA_IO1 (35) #define LORA_IO1 (35)
#define LORA_IO2 (34) #define LORA_IO2 (34)
#endif #endif