Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c9b2351

Browse filesBrowse files
authored
Update heltec v3 pin definitions (espressif#7877)
1 parent df75f38 commit c9b2351
Copy full SHA for c9b2351

File tree

Expand file treeCollapse file tree

2 files changed

+13
-5
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+13
-5
lines changed

‎variants/heltec_wifi_kit_32_v3/pins_arduino.h

Copy file name to clipboardExpand all lines: variants/heltec_wifi_kit_32_v3/pins_arduino.h
+7-5Lines changed: 7 additions & 5 deletions
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 */

‎variants/heltec_wifi_lora_32_V3/pins_arduino.h

Copy file name to clipboardExpand all lines: variants/heltec_wifi_lora_32_V3/pins_arduino.h
+6Lines changed: 6 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.