-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
153 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[project:switch_demo_t2] | ||
platform = t2 | ||
[project:switch_demo_t3] | ||
platform = t3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
## | ||
# @file CMakeLists.txt | ||
# @brief | ||
#/ | ||
|
||
# APP_PATH | ||
set(APP_PATH ${CMAKE_CURRENT_LIST_DIR}) | ||
|
||
# APP_NAME | ||
get_filename_component(APP_NAME ${APP_PATH} NAME) | ||
|
||
# APP_SRC | ||
aux_source_directory(${APP_PATH}/src APP_SRC) | ||
|
||
# APP_INC | ||
set(APP_INC ${APP_PATH}/include) | ||
|
||
######################################## | ||
# Target Configure | ||
######################################## | ||
add_library(${EXAMPLE_LIB}) | ||
message(STATUS "EXAMPLE_LIB:${APP_PATH}") | ||
|
||
target_sources(${EXAMPLE_LIB} | ||
PRIVATE | ||
${APP_SRC} | ||
) | ||
|
||
target_include_directories(${EXAMPLE_LIB} | ||
PRIVATE | ||
${APP_INC} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
choice | ||
prompt "Choice Arduino Board" | ||
default ENABLE_ARDUINO_TUYA_T2 | ||
|
||
config ENABLE_ARDUINO_TUYA_T2 | ||
bool "ENABLE_ARDUINO_TUYA_T2" | ||
|
||
config ENABLE_ARDUINO_TUYA_T3 | ||
bool "ENABLE_ARDUINO_TUYA_T3" | ||
endchoice | ||
|
||
if (ENABLE_ARDUINO_TUYA_T2) | ||
config ARDUINO_BOARD | ||
string | ||
default "ARDUINO_TUYA_T2" | ||
endif | ||
|
||
if (ENABLE_ARDUINO_TUYA_T3) | ||
config ARDUINO_BOARD | ||
string | ||
default "ARDUINO_TUYA_T3" | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[project:###PROJECT_NAME###] | ||
platform = ###PLATFORM_NAME### | ||
framework = arduino |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include "Arduino.h" | ||
|
||
void setup(void) | ||
{ | ||
Serial.begin(115200); | ||
} | ||
|
||
void loop() | ||
{ | ||
Serial.println("hello"); | ||
delay(1000); | ||
} |
File renamed without changes.
1 change: 1 addition & 0 deletions
1
tools/app_template/project_build.ini → tools/app_template/base/project_build.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
[project:###PROJECT_NAME###] | ||
platform = ###PLATFORM_NAME### | ||
framework = base |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters