-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ADD: heltec wsl v3 pinout information #7883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#ifndef Pins_Arduino_h | ||
#define Pins_Arduino_h | ||
|
||
#include <stdint.h> | ||
|
||
#define Wireless_Stick_Lite_V3 true | ||
#define DISPLAY_HEIGHT 0 | ||
#define DISPLAY_WIDTH 0 | ||
|
||
#define EXTERNAL_NUM_INTERRUPTS 16 | ||
#define NUM_DIGITAL_PINS 20 | ||
#define NUM_ANALOG_INPUTS 15 | ||
|
||
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1) | ||
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1) | ||
#define digitalPinHasPWM(p) (p < 34) | ||
|
||
static const uint8_t LED_BUILTIN = 35; | ||
#define BUILTIN_LED LED_BUILTIN // backward compatibility | ||
#define LED_BUILTIN LED_BUILTIN | ||
|
||
static const uint8_t TX = 43; | ||
static const uint8_t RX = 44; | ||
|
||
static const uint8_t SDA = 2; | ||
static const uint8_t SCL = 3; | ||
|
||
static const uint8_t SS = 34; | ||
static const uint8_t MOSI = 35; | ||
static const uint8_t SCK = 36; | ||
static const uint8_t MISO = 37; | ||
|
||
static const uint8_t A0 = 1; | ||
static const uint8_t A1 = 2; | ||
static const uint8_t A2 = 3; | ||
static const uint8_t A3 = 4; | ||
static const uint8_t A4 = 5; | ||
static const uint8_t A5 = 6; | ||
static const uint8_t A6 = 7; | ||
static const uint8_t A7 = 12; | ||
static const uint8_t A8 = 14; | ||
static const uint8_t A9 = 15; | ||
static const uint8_t A10 = 16; | ||
static const uint8_t A11 = 17; | ||
static const uint8_t A12 = 18; | ||
static const uint8_t A13 = 19; | ||
static const uint8_t A14 = 20; | ||
|
||
static const uint8_t T0 = 1; | ||
static const uint8_t T1 = 2; | ||
static const uint8_t T2 = 3; | ||
static const uint8_t T3 = 4; | ||
static const uint8_t T4 = 5; | ||
static const uint8_t T5 = 6; | ||
static const uint8_t T6 = 7; | ||
Comment on lines
+49
to
+55
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be touch See also the Heltec Wifi Lora V3 pins: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't placed them since they do not exist as an available pin in the board itself (https://resource.heltec.cn/download/Wireless_Stick_Lite_V3/HTIT-WSL_V3.png). They can be placed if required? Should I place them? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's a totally fair point. I added all of them because that's how it was here. I kind of agree with your point that we should only include pins which are actually available. But all the other heltec v3 pin files include all of them. Either way seems fine. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am hardly a tinkerer when it comes to electronics and for that reason I find it easier to think about what i can create/modify if there is a correlation between what I see in hardware and in code. That is why I believe showing only available pins is the right way to go. If there is no issue I would like to be kept as is. In the other it didn't make much sense my logic of separating them by ADC#_ and Ax and A1x so I did fix the numeration to be continuous. |
||
|
||
static const uint8_t Vext = 36; | ||
static const uint8_t LED = 35; | ||
|
||
#endif /* Pins_Arduino_h */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NUM_ANALOG_INPUTS
should be 20 for ESP32-S3There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed