-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Wrong Pin Assignment for Lolin c3 pico and mini #11184
-
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
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 3 comments 2 replies
-
Thanks! We will update it.
Beta Was this translation helpful? Give feedback.
All reactions
-
@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!
Beta Was this translation helpful? Give feedback.
All reactions
-
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?
Beta Was this translation helpful? Give feedback.
All reactions
-
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
Beta Was this translation helpful? Give feedback.
All reactions
-
Check and Review PR #11186
Beta Was this translation helpful? Give feedback.