These are chat archives for esp8266/Arduino

4th
May 2015
onkelfunny
@onkelfunny
May 04 2015 19:39
hi @all what is the correct usage of the pins in the scatch? E0, E1, E2... is not defined
ficeto
@ficeto
May 04 2015 19:40
0, 1, 2 ... 16, A0
onkelfunny
@onkelfunny
May 04 2015 19:43
ok thx. i create a new mapping for the nodemcu board and use the labels printed on the board... is this the correct way?
ficeto
@ficeto
May 04 2015 19:45
not sure I understood your question :)
E0 = 0
defines can be added, but not really sure it's the correct way
on the board you can see D1, D2, D3...
ficeto
@ficeto
May 04 2015 19:46
yeah... all "duino"s are like that
onkelfunny
@onkelfunny
May 04 2015 19:46
D1 is Pin 5 on ESP
ficeto
@ficeto
May 04 2015 19:46
really?
what are 0-4?
I have a schematic somewhere
let me look it up
ficeto
@ficeto
May 04 2015 19:48
yeah, a new variant should be added
and those to be mapped by #define or as a const value
I can add this real quick, but not sure when @iggr will merge it
onkelfunny
@onkelfunny
May 04 2015 19:50
i make a new variant like the wifio... i can create a pull request if the definition of D1,D2... is corrent
ficeto
@ficeto
May 04 2015 19:50
same thing I said...
add it on your side since you are using it
onkelfunny
@onkelfunny
May 04 2015 19:51
ok thx. i make a pull request later
ficeto
@ficeto
May 04 2015 19:51
duplicate the generic one
wifio has that i2c support
onkelfunny
@onkelfunny
May 04 2015 19:52
ok
ficeto
@ficeto
May 04 2015 19:53
why the hell they changed the pin numbers...
onkelfunny
@onkelfunny
May 04 2015 19:54
you sure? i have this board since two month (the yellow one)
ficeto
@ficeto
May 04 2015 19:54
I never had this
my question is why GPIO16 is D0 and so on
onkelfunny
@onkelfunny
May 04 2015 19:58
since 83ed3d5d8ff7377a4862e69780326bfe0549316d the port A0 is 17. is the correct? in the version before, A0 was 0
sorry my english is very poorly :(
Ivan Grokhotkov
@igrr
May 04 2015 20:57
yep this was changed recently, sorry if it broke some code
a variant for nodemcu would be great, just copy pins_arduino.h and add the necessary defines
E0..E16 were defined previously buy perhaps were deleted when new GPIO code was merged
Ivan Grokhotkov
@igrr
May 04 2015 21:03
oh, you already did that:) will merge, thanks