Skip to content

Commit

Permalink
Add default "LED_BUILTIN" for ESP Wrover Kit // Resolve #121
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Oct 1, 2018
1 parent a87034b commit 8a31106
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
13 changes: 5 additions & 8 deletions examples/arduino-blink/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
6 changes: 2 additions & 4 deletions examples/arduino-blink/src/Blink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down

0 comments on commit 8a31106

Please sign in to comment.