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

Sign up
Appearance settings

Wrong Pin Assignment for Lolin c3 pico and mini #11184

lupo244 started this conversation in Show and tell
Discussion options

The File pins_arduino.h in the Directory ...\variants\lolin_c3_pico\ has an incorrect pin assignment for SCK. The correct pin assignment is 1 instead of 2. The same applies to the c3 mini.
Bernhard

You must be logged in to vote

Replies: 3 comments 2 replies

Comment options

Thanks! We will update it.

You must be logged in to vote
0 replies
Comment options

@lupo244 - I can't find the SPI pins informtaion for the Lolin-C3-Mini.
I've found for the Lolin-C3-Pico at https://www.wemos.cc/en/latest/c3/c3_pico.html#pin
But the https://www.wemos.cc/en/latest/c3/c3_mini.html#pin doesn't include SPI/I2C pins.
Could you send me the link that has that information?
Thanks!

You must be logged in to vote
2 replies
Comment options

This link says that the C3-Mini uses pin2 as SCK.
https://mischianti.org/wemos-lolin-esp32-c3-mini-v2-1-high-resolution-pinout-and-specs/
This matches the pins_arduino.h information.

For the Pico, this one has different information:
https://mischianti.org/wemos-lolin-esp32-c3-pico-high-resolution-pinout-and-specs/

Which is correct?

Comment options

The second piece of information is incorrect, as is the pin definition in Arduino, where the SCK pin is set to 2. I tested it for the C3 Pico and couldn't get my sketch to work with the standard pin definition. At https://www.wemos.cc/en/latest/c3/c3_pico.html and https://www.wemos.cc/en/latest/_static/files/sch_c3_pico_v1.0.0.pdf
I then saw that SCK is set to pin 1. After setting the SCK pin to 1 in the pin definition, it worked.

I haven't tested it for the C3 mini, but in the schematic https://www.wemos.cc/en/latest/_static/files/sch_c3_mini_v2.1.0.pdf the SCK pin is set to 1, so the pin definition in Arduino (SCK = 2) is probably incorrect.
Greetings, Bernhard

Comment options

Check and Review PR #11186

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /