Skip to content

Commit c9b2351

Browse files
authored
Update heltec v3 pin definitions (espressif#7877)
1 parent df75f38 commit c9b2351

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

Diff for: variants/heltec_wifi_kit_32_v3/pins_arduino.h

+7-5
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
#define DISPLAY_HEIGHT 64
88
#define DISPLAY_WIDTH 128
99

10-
#define EXTERNAL_NUM_INTERRUPTS 16
11-
#define NUM_DIGITAL_PINS 40
12-
#define NUM_ANALOG_INPUTS 16
10+
#define EXTERNAL_NUM_INTERRUPTS 46
11+
#define NUM_DIGITAL_PINS 48
12+
#define NUM_ANALOG_INPUTS 20
1313

1414
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
15-
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
16-
#define digitalPinHasPWM(p) (p < 34)
15+
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
16+
#define digitalPinHasPWM(p) (p < 46)
1717

1818
static const uint8_t LED_BUILTIN = 35;
1919
#define BUILTIN_LED LED_BUILTIN // backward compatibility
@@ -74,4 +74,6 @@ static const uint8_t RST_OLED = 21;
7474
static const uint8_t SCL_OLED = 18;
7575
static const uint8_t SDA_OLED = 17;
7676

77+
static const uint8_t DIO0 = 14;
78+
7779
#endif /* Pins_Arduino_h */

Diff for: variants/heltec_wifi_lora_32_V3/pins_arduino.h

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#include "soc/soc_caps.h"
66

77
#define WIFI_LoRa_32_V3 true
8+
#define DISPLAY_HEIGHT 64
9+
#define DISPLAY_WIDTH 128
810

911
#define USB_VID 0x303a
1012
#define USB_PID 0x1001
@@ -79,4 +81,8 @@ static const uint8_t RST_OLED = 21;
7981
static const uint8_t SCL_OLED = 18;
8082
static const uint8_t SDA_OLED = 17;
8183

84+
static const uint8_t RST_LoRa = 12;
85+
static const uint8_t BUSY_LoRa = 13;
86+
static const uint8_t DIO0 = 14;
87+
8288
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)