-
-
Notifications
You must be signed in to change notification settings - Fork 80
Fix SDK #487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Fix SDK #487
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
8f95f7e
Fix TactilitySDK
KenVanHoeylandt 8923a7a
Add app integration test and fix .gitignore
KenVanHoeylandt 4d1ef5d
Fix command
KenVanHoeylandt 9ea5014
Fixes
KenVanHoeylandt c4405f6
Fix
KenVanHoeylandt ad2ed01
Fixes
KenVanHoeylandt 942a3ee
Fix
KenVanHoeylandt efd3c7f
Fixes
KenVanHoeylandt d35b3c3
Fix
KenVanHoeylandt c98cf14
Cleanup and improvements
KenVanHoeylandt 8069d03
Fixes
KenVanHoeylandt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,16 @@ | ||
| cmake_minimum_required(VERSION 3.20) | ||
|
|
||
| include($ENV{IDF_PATH}/tools/cmake/project.cmake) | ||
|
|
||
| if (DEFINED ENV{TACTILITY_SDK_PATH}) | ||
| set(TACTILITY_SDK_PATH $ENV{TACTILITY_SDK_PATH}) | ||
| else() | ||
| set(TACTILITY_SDK_PATH "../../release/TactilitySDK") | ||
| message(WARNING "⚠️ TACTILITY_SDK_PATH environment variable is not set, defaulting to ${TACTILITY_SDK_PATH}") | ||
| endif() | ||
|
|
||
| include("${TACTILITY_SDK_PATH}/TactilitySDK.cmake") | ||
| set(EXTRA_COMPONENT_DIRS ${TACTILITY_SDK_PATH}) | ||
|
|
||
| project(SdkTest) | ||
| tactility_project(SdkTest) | ||
This file contains hidden or 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,6 @@ | ||
| file(GLOB_RECURSE SOURCE_FILES Source/*.c) | ||
|
|
||
| idf_component_register( | ||
| SRCS ${SOURCE_FILES} | ||
| REQUIRES TactilitySDK | ||
| ) |
This file contains hidden or 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,41 @@ | ||
| #include <tt_app.h> | ||
| #include <tt_lvgl_toolbar.h> | ||
|
|
||
| #include <tactility/concurrent/dispatcher.h> | ||
| #include <tactility/concurrent/event_group.h> | ||
| #include <tactility/concurrent/mutex.h> | ||
| #include <tactility/concurrent/recursive_mutex.h> | ||
| #include <tactility/concurrent/thread.h> | ||
| #include <tactility/concurrent/timer.h> | ||
| #include <tactility/drivers/gpio.h> | ||
| #include <tactility/drivers/gpio_controller.h> | ||
| #include <tactility/drivers/i2c_controller.h> | ||
| #include <tactility/drivers/i2s_controller.h> | ||
| #include <tactility/drivers/root.h> | ||
| #include <tactility/check.h> | ||
| #include <tactility/defines.h> | ||
| #include <tactility/delay.h> | ||
| #include <tactility/device.h> | ||
| #include <tactility/driver.h> | ||
| #include <tactility/error.h> | ||
| #include <tactility/log.h> | ||
| #include <tactility/module.h> | ||
| #include <tactility/time.h> | ||
|
|
||
| #include <tactility/lvgl_module.h> | ||
|
|
||
| static void onShowApp(AppHandle app, void* data, lv_obj_t* parent) { | ||
| lv_obj_t* toolbar = tt_lvgl_toolbar_create_for_app(parent, app); | ||
| lv_obj_align(toolbar, LV_ALIGN_TOP_MID, 0, 0); | ||
|
|
||
| lv_obj_t* label = lv_label_create(parent); | ||
| lv_label_set_text(label, "Hello, world!"); | ||
| lv_obj_align(label, LV_ALIGN_CENTER, 0, 0); | ||
| } | ||
|
|
||
| int main(int argc, char* argv[]) { | ||
| tt_app_register((AppRegistration) { | ||
| .onShow = onShowApp | ||
| }); | ||
| return 0; | ||
| } |
This file contains hidden or 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,10 @@ | ||
| [manifest] | ||
| version=0.1 | ||
| [target] | ||
| sdk=0.0.0 | ||
| platforms=esp32,esp32s3,esp32c6,esp32p4 | ||
| [app] | ||
| id=one.tactility.sdktest | ||
| versionName=0.1.0 | ||
| versionCode=1 | ||
| name=SDK Test |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.