Page 1 of 1

pins_arduino

Posted: Sun Apr 09, 2017 5:12 am
by EBCLR2017
I noted that have several variants for pins_arduino.h

What is the correct way of code, to set Arduino IDE to use a specific variant?

Re: pins_arduino

Posted: Sun May 07, 2017 1:39 pm
by Nick Chung
Easy , just use number on the ESP32 board.
Ex: if you want use D2 pin (on the board) like Blynk., you connect LED to that pin,
your code is :

void setup(){
pinMode(2,OUTPUT);
}
void loop(){
digitalWrite(2,HIGH);
delay(1000);
digitalWrite(2,LOW);
delay(1000);
}
The note is : pin map of ESP32 versions is not the same. See pin map and test before you countinue .....

Re: pins_arduino

Posted: Mon May 08, 2017 12:50 pm
by f.h-f.s.
Your question was how to set the board variant right?
Image
This guy just made a post about the setup http://www.cnx-software.com/2017/05/07/ ... for-esp32/