pins_arduino

EBCLR2017
Posts: 3
Joined: Sun Apr 09, 2017 5:08 am

pins_arduino

Postby EBCLR2017 » Sun Apr 09, 2017 5:12 am

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?

Nick Chung
Posts: 8
Joined: Sun May 07, 2017 4:40 am

Re: pins_arduino

Postby Nick Chung » Sun May 07, 2017 1:39 pm

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 .....

f.h-f.s.
Posts: 214
Joined: Thu Dec 08, 2016 2:53 pm

Re: pins_arduino

Postby f.h-f.s. » Mon May 08, 2017 12:50 pm

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/

Who is online

Users browsing this forum: Baidu [Spider] and 36 guests