Gaston - Hi all,I am trying to build the sense...
Hi all,
I am trying to build the sense_template code for a lolin_s2_mini (Wemos S2 mini). I get build errors. The only thing I changed is the
[env]
settings in the platformio file.
The error is related to the LED_BUILTIN = 15;
code (see image).
Is there anyone that can help me out here? My coding experience is limited.
5 Replies
can you share your current platformio.ini? i suspect the problem might be in there..
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:lolin_s2_mini]
platform = espressif32
board = lolin_s2_mini
framework = arduino
lib_ldf_mode = deep
upload_speed = 460800
monitor_speed = 115200
lib_deps =
SignalK/SensESP @ >=3.0.0-beta.1,<4.0.0-alpha.1
build_unflags =
-Werror=reorder
board_build.partitions = min_spiffs.csv
monitor_filters = esp32_exception_decoder
extends = espressif32_base
build_flags =
-D LED_BUILTIN=2
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
-D TAG='"Arduino"'
-D USE_ESP_IDF_LOG
Terminal:
Compiling .pio\build\lolin_s2_mini\lib251\AceButton\ace_button\testing\EventTracker.cpp.o
Compiling .pio\build\lolin_s2_mini\lib9ed\WiFi\WiFi.cpp.o
<command-line>: error: expected unqualified-id before numeric constant
C:/Users/gaston/.platformio/packages/framework-arduinoespressif32/variants/lolin_s2_mini/pins_arduino.h:29:22: note: in expansion of macro 'LED_BUILTIN'
static const uint8_t LED_BUILTIN = 15;
^~~~~~~~~~~
And more messages regarding the same error.My 2cnt: You're declaring
LED_BUILTIN
both as a macro in your build_flags
and defining a const which creates a conflict?yeah, i thought the same..
try changing
-D LED_BUILTIN=2
to
; -D LED_BUILTIN=2
and check if that fixes itThat did indeed work. Thank you.