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?
pins_arduino
-
- Posts: 8
- Joined: Sun May 07, 2017 4:40 am
Re: pins_arduino
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 .....
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
Your question was how to set the board variant right?
This guy just made a post about the setup http://www.cnx-software.com/2017/05/07/ ... for-esp32/
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: No registered users and 139 guests