Skip to content

Commit

Permalink
add heltec Wifi Stick Lite
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberman54 committed Jan 26, 2025
1 parent 5570409 commit 5c644ba
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions platformio_orig_s3.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
;halfile = ttgotdisplays3.h
halfile = ttgotsupremes3.h
;halfile = heltecv3.h
;halfile = heltecsticklitev3.h

[platformio]
; upload firmware to board with usb cable
Expand Down
37 changes: 37 additions & 0 deletions shared/hal/heltecsticklitev3.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// clang-format off
// upload_speed 1500000
// board heltec_wifi_lora_32_V3

#ifndef _HELTECSTICKLITEV3_H
#define _HELTECSTICKLITEV3_H

#include <stdint.h>

// Hardware related definitions for Heltec V3 LoRa-32 S3 Board
// see https://docs.heltec.org/en/node/esp32/wireless_stick_lite/index.html

// LORA settings
#define HAS_LORA 1 // use on board LORA
#define CFG_sx1262_radio 1 // HPD16A
// Pins for LORA chip SPI interface, reset line and interrupt lines
#define LORA_IRQ DIO0
#define LORA_IO1 LMIC_UNUSED_PIN
#define LORA_IO2 LMIC_UNUSED_PIN
#define LORA_SCK SCK
#define LORA_MISO MISO
#define LORA_MOSI MOSI
#define LORA_RST RST_LoRa
#define LORA_BUSY BUSY_LoRa
#define LORA_CS SS

#define HAS_LED LED_BUILTIN
#define HAS_BUTTON 0

#define BAT_MEASURE_ADC ADC1_CHANNEL_0 // battery probe pin is GPIO1
#define BAT_VOLTAGE_DIVIDER 4 // voltage divider 100k/390k on board

// switches battery power and Vext, switch logic 0 = on / 1 = off
#define EXT_POWER_SW Vext
#define EXT_POWER_ON 0

#endif

0 comments on commit 5c644ba

Please sign in to comment.