Skip to content

Commit

Permalink
adding build environments and pin definitions for heltec-v2 board, fi…
Browse files Browse the repository at this point in the history
…xes 40
  • Loading branch information
paidforby committed Jan 29, 2020
1 parent 82a8cf5 commit be1d6ff
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
16 changes: 16 additions & 0 deletions firmware/esp32_ttgo/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,19 @@
#define GPS_SERIAL 9600, SERIAL_8N1, GPIO_NUM_12, GPIO_NUM_15

#endif

#ifdef HELTEC
#define LORA_IRQ DIO0
#define LORA_IO1 DIO1
#define LORA_IO2 DIO2
#define LORA_SCK SCK
#define LORA_MISO MISO
#define LORA_MOSI MOSI
#define LORA_RST RST_LoRa
#define LORA_CS SS
#define OLED_SDA SDA_OLED
#define OLED_SCL SCL_OLED
#define OLED_RST RST_OLED
#define OLED_WIDTH 128
#define OLED_HEIGHT 64
#endif
4 changes: 4 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ build_flags = -DTTGO_LORA_V2
board = ttgo-lora32-v1
build_flags = -DTTGO_TBEAM

[env:heltec-v2]
board = heltec_wifi_lora_32_V2
build_flags = -DHELTEC

; TODO: esp8266 versions?

; for portable (wemos d1 mini) use these settings:
Expand Down
2 changes: 2 additions & 0 deletions settings.mk.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ FS_DIR = web/static/
# for esp32 ttgo dev board use these settings
CHIP=esp32
BOARD=ttgo-lora32-v1
#BOARD=heltec_wifi_lora_32_V2
BUILD_EXTRA_FLAGS='-DTTGO_LORA_V2'
#'-DTTGO_LORA_V1'
#'-DTTGO_TBEAM'
#'-DHELTEC'


# for portable (wemos d1 mini) use these settings:
Expand Down

0 comments on commit be1d6ff

Please sign in to comment.