Add default "LED_BUILTIN" for ESP Wrover Kit // Resolve #121

This commit is contained in:
Ivan Kravets
2018-10-01 15:33:33 +03:00
parent a87034b146
commit 8a311060a6
2 changed files with 7 additions and 12 deletions
+5 -8
View File
@@ -7,22 +7,19 @@
; Please visit documentation for the other options and examples
; http://docs.platformio.org/page/projectconf.html
[env:esp32dev]
platform = espressif32
framework = arduino
board = esp32dev
monitor_speed = 115200
[env:esp wrover kit]
platform = espressif32
framework = arduino
board = esp-wrover-kit
monitor_speed = 115200
build_flags =
; https://docs.espressif.com/projects/esp-idf/en/latest/get-started/get-started-wrover-kit.html#rgb-led
-D LED_BUILTIN=2
[env:quantum]
[env:esp32doit-devkit-v1]
platform = espressif32
framework = arduino
board = quantum
board = esp32doit-devkit-v1
monitor_speed = 115200
[env:lolin32]
+2 -4
View File
@@ -6,10 +6,8 @@
#include <Arduino.h>
#ifndef LED_BUILTIN
// Set LED_BUILTIN if it is not defined by Arduino framework
#define LED_BUILTIN 13
#endif
// Set LED_BUILTIN if it is not defined by Arduino framework
// #define LED_BUILTIN 2
void setup()
{