mirror of
https://github.com/manuelbl/ttn-esp32.git
synced 2025-06-15 04:14:28 +02:00
Modify example for PlatformIO.ini
This commit is contained in:
parent
b3e0b567b3
commit
a8cd58214d
5
examples/send_recv/.gitignore
vendored
Normal file
5
examples/send_recv/.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
.pio
|
||||||
|
.vscode/.browse.c_cpp.db*
|
||||||
|
.vscode/c_cpp_properties.json
|
||||||
|
.vscode/launch.json
|
||||||
|
.vscode/ipch
|
@ -1,9 +1,8 @@
|
|||||||
# The following lines of boilerplate have to be in your project's
|
|
||||||
# CMakeLists in this exact order for cmake to work correctly
|
|
||||||
cmake_minimum_required(VERSION 3.5)
|
cmake_minimum_required(VERSION 3.5)
|
||||||
|
|
||||||
get_filename_component(TTN_DIR ../.. ABSOLUTE)
|
|
||||||
set(EXTRA_COMPONENT_DIRS "${TTN_DIR}")
|
|
||||||
|
|
||||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||||
|
|
||||||
|
# Update the below line to match the path to the ttn-esp32 library,
|
||||||
|
# e.g. list(APPEND EXTRA_COMPONENT_DIRS "/Users/me/Documents/ttn-esp32")
|
||||||
|
list(APPEND EXTRA_COMPONENT_DIRS "../..")
|
||||||
|
|
||||||
project(send_recv)
|
project(send_recv)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
set(COMPONENT_SRCS "main.cpp")
|
idf_component_register(
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS "")
|
SRCS "main.cpp"
|
||||||
|
INCLUDE_DIRS "."
|
||||||
register_component()
|
REQUIRES ttn-esp32)
|
||||||
|
10
examples/send_recv/platformio.ini
Normal file
10
examples/send_recv/platformio.ini
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[platformio]
|
||||||
|
src_dir = main
|
||||||
|
|
||||||
|
[env:esp32dev]
|
||||||
|
platform = espressif32
|
||||||
|
board = esp32dev
|
||||||
|
framework = espidf
|
||||||
|
build_flags = -Wno-expansion-to-defined
|
||||||
|
upload_port = /dev/cu.usb*
|
||||||
|
monitor_speed = 115200
|
@ -18,8 +18,7 @@
|
|||||||
"export": {
|
"export": {
|
||||||
"include": [
|
"include": [
|
||||||
"include",
|
"include",
|
||||||
"src",
|
"src"
|
||||||
"esp_idf_lmic_config.h"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"frameworks": "espidf",
|
"frameworks": "espidf",
|
||||||
|
Loading…
Reference in New Issue
Block a user