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

Wemos d1 mini pin mapping #1243

Closed
danielmawhirter opened this Issue Dec 18, 2015 · 8 comments

Comments

Projects
None yet
5 participants
@danielmawhirter

danielmawhirter commented Dec 18, 2015

(using 2.0.0 package manager version)
The Wemos D1 mini's pins do not map to arduino pin numbers accurately. Here is the mapping as I have found it so far (using pinmode(), digitalWrite()'s, and a mega for analogRead()'s):
normal status: d0=low, d1=high, d2=low, d3=high, d4=high, d5=high, d6=high, d7=high, d8=low
After running the test with "10" pin d1 appears to have become normally low. Not a clue why, but I have eliminated those "d1 low" results below.
arduino pin -> result/connection

0 -> d3
1 -> nc
2 -> d4 = led
3 -> nc
4 -> d2
5 -> d1
6 -> watchdog(4) reset
7 -> watchdog(4) reset
8 -> watchdog(4) reset
9 -> watchdog(4) reset
10 -> nc
11 -> watchdog(4) reset
12 -> d7 low, d6 sporadic
13 -> d0 high, d7 sporadic
14 -> d0 high, d6 low, d7 low, d5 sporadic
15 -> d0 high, d8 sporadic
16 -> d0
17 -> nc
18 -> nc
19 -> nc
20 -> stack trace and pin-based(2) reset
21 -> stack trace and watchdog(4) reset
22 -> stack trace and watchdog(4) reset
23 -> stack trace and watchdog(4) reset
24 -> nc
25 -> nc
26 -> nc
27 -> nc
28 -> nc
29 -> nc

@igrr

This comment has been minimized.

Show comment
Hide comment
@igrr

igrr Dec 18, 2015

Member

Wemos D1 mini pin mapping is available here:
https://github.com/esp8266/Arduino/blob/master/variants/d1_mini/pins_arduino.h#L49-L61
You should be able to use D0D10, D13 identifiers in your sketch.

Member

igrr commented Dec 18, 2015

Wemos D1 mini pin mapping is available here:
https://github.com/esp8266/Arduino/blob/master/variants/d1_mini/pins_arduino.h#L49-L61
You should be able to use D0D10, D13 identifiers in your sketch.

@danielmawhirter

This comment has been minimized.

Show comment
Hide comment
@danielmawhirter

danielmawhirter Dec 18, 2015

So it is, I was mistakenly trying the lowercase variants and fell back to raw numbers. Thank you for your help!

danielmawhirter commented Dec 18, 2015

So it is, I was mistakenly trying the lowercase variants and fell back to raw numbers. Thank you for your help!

@wemos

This comment has been minimized.

Show comment
Hide comment
@danielmawhirter

This comment has been minimized.

Show comment
Hide comment
@danielmawhirter

danielmawhirter Dec 20, 2015

Thanks, glad to see more documentation and shields coming up!

danielmawhirter commented Dec 20, 2015

Thanks, glad to see more documentation and shields coming up!

@wemos

This comment has been minimized.

Show comment
Hide comment
@wemos

wemos Dec 20, 2015

Contributor

thank you for your supporting.

Contributor

wemos commented Dec 20, 2015

thank you for your supporting.

@Bushii7

This comment has been minimized.

Show comment
Hide comment
@Bushii7

Bushii7 Sep 1, 2017

please check this forum .. i need some solution :( urgent
i have wemos esp8266 nd audiocodec MIKRO E.
https://communities.intel.com/message/495988#495988

Bushii7 commented Sep 1, 2017

please check this forum .. i need some solution :( urgent
i have wemos esp8266 nd audiocodec MIKRO E.
https://communities.intel.com/message/495988#495988

@suculent

This comment has been minimized.

Show comment
Hide comment
@suculent

suculent Sep 1, 2017

suculent commented Sep 1, 2017

@Bushii7

This comment has been minimized.

Show comment
Hide comment
@Bushii7

Bushii7 Sep 1, 2017

question was actually for WEMOS
need an audio codec library compatible with wemos D1 mini...

Bushii7 commented Sep 1, 2017

question was actually for WEMOS
need an audio codec library compatible with wemos D1 mini...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment