Skip to content
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

Wrong pin number of SPI and I2C for LOLIN(Wemos) S2 MINI #10196

Open
1 task done
peaechan opened this issue Aug 19, 2024 · 3 comments
Open
1 task done

Wrong pin number of SPI and I2C for LOLIN(Wemos) S2 MINI #10196

peaechan opened this issue Aug 19, 2024 · 3 comments
Labels
Type: Question Only question

Comments

@peaechan
Copy link

peaechan commented Aug 19, 2024

Board

LOLIN S2 MINI

Device Description

LOLIN(Wemos) S2 MINI with ESP32-S2FN4R2

Hardware Configuration

GPIO36 & 35 connected to SCK and MOSI

Version

latest master (checkout manually)

IDE Name

Arduino IDE 2.3.2

Operating System

Windows 11

Flash frequency

240MHz

PSRAM enabled

yes

Upload speed

921600

Description

I have a small project using ePaper with LOLIN(Wemos) S2 mini. Initially, GPIO36 & 35 connected to SCK and MOSI using attached pinout diagram but it won't work. Then, I found that default SPI pins in arduino IDE are not correct. So, I have modified the pin number of RXTX, SPI and I2C in pins_arduino.h.

Original:

static const uint8_t TX = 39;
static const uint8_t RX = 37;

static const uint8_t SDA = 33;
static const uint8_t SCL = 35;

static const uint8_t SS = 12;
static const uint8_t MOSI = 11;
static const uint8_t MISO = 9;
static const uint8_t SCK = 7;

Modified:

static const uint8_t TX = 39;
static const uint8_t RX = 40;

static const uint8_t SDA = 8;
static const uint8_t SCL = 9;

static const uint8_t SS = 34;
static const uint8_t MOSI = 35;
static const uint8_t MISO = 37;
static const uint8_t SCK = 36;

WEMOS-ESP32-S2-MINI

Sketch

None

Debug Message

None

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@peaechan peaechan added the Status: Awaiting triage Issue is waiting for triage label Aug 19, 2024
@lbernstone
Copy link
Contributor

lbernstone commented Aug 19, 2024

Not sure where you got that image from. The Wemos reference does not include those markings, so I'm going to say the board mfr that wrote the variant file is correct here.

@peaechan
Copy link
Author

FYI. The image is come from here.

@Jason2866
Copy link
Collaborator

Clearly not branded as LOLIN(Wemos) S2 MIN. Yours is a StudioPieters board.

@Jason2866 Jason2866 added Type: Question Only question and removed Status: Awaiting triage Issue is waiting for triage labels Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question Only question
Projects
None yet
Development

No branches or pull requests

3 participants